Get-SPODataConnectionSetting

 

**適用先:**SharePoint Server 2016

Returns Business Connectivity Services OData connection properties.

構文

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.

注意

このコマンドレットは、社内環境のみに適用されます。SharePoint Online 管理シェルではこのコマンドを使用することはできません。

Windows PowerShell for SharePoint 製品のアクセス許可と最新情報については、「Windows PowerShell for SharePoint Server 2016 リファレンス」のオンライン ドキュメントをご覧ください。

パラメーター

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

適切な破棄を行うためにオブジェクトを管理します。 SPWebSPSite などのオブジェクトの使用によって大量のメモリが使用される場合があるので、Windows PowerShell スクリプトでこれらのオブジェクトを使用するには適切なメモリ管理が必要です。メモリの解放が必要になった場合は、 SPAssignment オブジェクトを使用して、変数へのオブジェクトの割り当てとオブジェクトの破棄を行うことができます。割り当てコレクションまたは Global パラメーターが使用されていない場合、 SPWebSPSite 、または SPSiteAdministration オブジェクトが使用されていると、オブジェクトは自動的に破棄されます。

注意

Global パラメーターが使用されている場合は、オブジェクトはすべてグローバル ストアに格納されます。 Stop-SPAssignment コマンドを使用してオブジェクトの使用または破棄を直接行わないと、メモリ不足のシナリオになる場合があります。

Name

Optional

System.String

Specifies the name of the Business Connectivity Services connection object.

Input Types

Return Types

----------------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

関連項目

New-SPODataConnectionSetting
Remove-SPODataConnectionSetting
Set-SPODataConnectionSetting