New-SPODataConnectionSetting

 

**Gilt für:**SharePoint Server 2016

**Letztes Änderungsdatum des Themas:**2015-03-09

Creates a new Business Data Connectivity Service connection.

Syntax

New-SPODataConnectionSetting -AuthenticationMode <PassThrough | RevertToSelf | Credentials | WindowsCredentials | DigestCredentials | ClientCertificate | Anonymous> -Name <String> -ServiceAddressURL <Uri> -ServiceContext <SPServiceContextPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-ExtensionProvider <String>] [-SecureStoreTargetApplicationId <String>]

Detailed Description

Use the New-SPODataConnectionSetting cmdlet to create a new Business Data Connectivity Service connection and its associated metadata properties in the farm. To see the metadata settings, use the Get-SPODataConnectionSettingMetaData cmdlet.

Hinweis

Dieses Cmdlet ist nur in einer lokalen Umgebung verfügbar. In der SharePoint Online-Verwaltungsshell kann der Befehl nicht verwendet werden.

Informationen zu Berechtigungen sowie Aktuelles zu Windows PowerShell für SharePoint-Produkte finden Sie in der Onlinedokumentation in der Referenz zu Windows PowerShell für SharePoint Server 2016.

Parameter

Parameter Required Type Description

AuthenticationMode

Required

Microsoft.SharePoint.BusinessData.SystemSpecific.OData.ODataAuthenticationMode

Specifies the type of authentication mode required for the Business Connectivity Services connection.

The value for the authentication mode is any one of the following options:

 

--PassThrough

--RevertToSelf

--Credentials

--WindowsCredentials

--DigestCredentials

--ClientCertificate

--Anonymous

ServiceAddressURL

Required

System.Uri

Specifies the URL for the OData service. The URL does not have be Internet facing. This is the final destination from which data is retrieved.

ServiceContext

Required

Microsoft.SharePoint.PowerShell.SPServiceContextPipeBind

Specifies the service context which is in the form of an instance of an SPServiceContext object, an SPSiteAdministration object identifier, or a SPSite object. An example of a service context value is an identifier from the ID field, a string identifier, a URI, or a string representation of a GUID.

Name

Required

System.String

Specifies the name of the Business Connectivity Services connection object.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Verwaltet Objekte zum Zweck der ordnungsgemäßen Beseitigung. Die Verwendung von Objekten wie beispielsweise SPWeb oder SPSite kann sehr viel Arbeitsspeicher erfordern, und für die Verwendung dieser Objekte in Windows PowerShell-Skripts muss der Arbeitsspeicher entsprechend verwaltet werden. Mit dem SPAssignment -Objekt können Sie einer Variablen Objekte zuweisen und die Objekte beseitigen, wenn sie nicht mehr benötigt werden, um Arbeitsspeicher freizugeben. Wenn die Objekte SPWeb , SPSite oder SPSiteAdministration verwendet werden, werden diese automatisch beseitigt, falls keine Zuweisungsauflistung oder kein Global -Parameter verwendet wird.

Hinweis

Wenn der Global -Parameter verwendet wird, sind alle Objekte im globalen Speicher enthalten. Es kann vorkommen, dass nicht genügend Arbeitsspeicher vorhanden ist, falls Objekte nicht sofort verwendet werden oder mit dem Befehl Stop-SPAssignment beseitigt werden.

ExtensionProvider

Optional

System.String

Extends the functionality provided by the OData connector in Business Connectivity Service as well as provides the fully qualified assembly name of an OData extension provider. Fully qualified assembly name should contain following parameters in this order:

Namespace.Class, Assembly Name, Version, Culture and Public Key. E.g. “Contoso.ExtensionProvider.Server, Contoso.ExtensionPRovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31ba4812ca364d35”. To clear the value of ExtensionProvider, provide an empty string, for example, “”.

SecureStoreTargetApplicationId

Optional

System.String

Specifies the Secure Store Target Application ID. Works in conjunction with the AuthenticationMode parameter.

The value for the SecureStoreTargetApplicationId parameter is any one of the following options:

--Credentials

--WindowsCredentials

--DigestCredentials

--ClientCertificate

Input Types

Return Types

Beispiel

--------------EXAMPLE--------------

New-SPODataConnectionSetting -Name "ContosoServiceApp" -ServiceContext "http://contoso" -ServiceAddressURL "https://expensereporting.cloudapp.net/expensereporting.svc" -AuthenticationMode "Credentials" -SecureStoreTargetApplicationId "DallasUserName" -ExtensionProvider "Contoso.ExtensionProvider.Server, Contoso.ExtensionPRovider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31ba4812ca364d35"

This example creates a new Business Data Connectivity Service connection named ContosoServiceApp.

In this process, a Microsoft Business Connectivity Services connection metadata object is created.

Siehe auch

Get-SPODataConnectionSetting
Remove-SPODataConnectionSetting
Set-SPODataConnectionSetting