Get-SPODataConnectionSetting

 

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

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

Returns Business Connectivity Services OData connection properties.

Syntax

Get-SPODataConnectionSetting -ServiceContext <SPServiceContextPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-Name <String>]

Detailed Description

Use the Get-SPODataConnectionSetting cmdlet to display Business Connectivity Services OData connection properties for a specified Business Connectivity Services connection.

If the name of the connection is not specified by using the Name parameter, this cmdlet will return the list of the connections for the specified BDC service context.

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

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.

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.

Name

Optional

System.String

Specifies the name of the Business Connectivity Services connection object.

Input Types

Return Types

Beispiel

----------------EXAMPLE 1------------

Get-SPODataConnectionSetting -ServiceContext  "http://contoso" -Name "ContosoServiceApp"

This example returns properties of the BCS connection named ContosoServiceApp

----------------EXAMPLE 2------------

Get-SPODataConnectionSetting -ServiceContext "http://contoso"

This example returns a list of BCS connections for the service context named http://contoso

Siehe auch

New-SPODataConnectionSetting
Remove-SPODataConnectionSetting
Set-SPODataConnectionSetting