Set-SPODataConnectionSettingMetaData

 

**適用先:**SharePoint Server 2016

Updates properties for the metadata of a Business Connectivity Services connection.

構文

Set-SPODataConnectionSettingMetadata -Name <String> <COMMON PARAMETERS>

Set-SPODataConnectionSettingMetadata -Identity <ODataConnectionSettings> <COMMON PARAMETERS>

COMMON PARAMETERS: -ServiceContext <SPServiceContextPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-AuthenticationMode <PassThrough | RevertToSelf | Credentials | WindowsCredentials | DigestCredentials | ClientCertificate | Anonymous>] [-Confirm [<SwitchParameter>]] [-SecureStoreTargetApplicationId <String>] [-ServiceAddressMetadataURL <Uri>] [-WhatIf [<SwitchParameter>]]

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

Set-SPODataConnectionSettingMetadata -Name "ContosoServiceApp" -ServiceContext "http://contoso" -AuthenticationMode "PassThrough"

This example updates the authentication mode of the metadata of Business Connectivity Services connection named ContosoServiceApp.

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

$ConnectionVariable = Get-SPODataConnectionSettingMetadata -ServiceContext  http://contoso -Name "ContosoServiceApp"

Set-SPODataConnectionSettingMetadata -Identity $ConnectionVariable -AuthenticationMode "PassThrough"

This example updates the Metadata properties of the Business Connectivity Services connection named ContosoServiceApp.

Detailed Description

このコマンドレットには、複数のパラメーター セットが含まれています。使用できるのは、1 つのパラメーター セットのパラメーターだけであり、異なるパラメーター セットのパラメーターを組み合わせることはできません。パラメーター セットの使用法に関する詳しい情報については、「コマンドレット パラメーター セット」を参照してください。

Use the Set-SPODataConnectionSettingMetaData cmdlet to update properties for a Business Connectivity Services connection for a Business Connectivity Services service application in the farm.

注意

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

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

パラメーター

Parameter Required Type Description

Identity

Required

Microsoft.SharePoint.BusinessData.SystemSpecific.OData.ODataConnectionSettings

Specifies the OData Connection Settings object.

Name

Required

System.String

Specifies the name of the existing Business Connectivity Services connection.

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 an 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 コマンドを使用してオブジェクトの使用または破棄を直接行わないと、メモリ不足のシナリオになる場合があります。

AuthenticationMode

Optional

Microsoft.SharePoint.BusinessData.SystemSpecific.OData.ODataAuthenticationMode

Specifies the type of authentication mode that the Business Connectivity Services connection requires.

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

--PassThrough

--RevertToSelf

--Credentials

--WindowsCredentials

--DigestCredentials

--ClientCertificate

--Anonymous

Confirm

Optional

System.Management.Automation.SwitchParameter

コマンドを実行する前に、確認のメッセージを表示します。詳細を表示するには、「 get-help about_commonparameters 」と入力します。

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

ServiceAddressMetadataURL

Optional

System.Uri

Specifies the metadata URL for the OData service. This URL does not have to be Internet facing. If a value is not specified for a connection, a default value is used.

WhatIf

Optional

System.Management.Automation.SwitchParameter

コマンドを実行する代わりに、コマンドの実行結果を説明するメッセージを表示します。詳細を表示するには、「 get-help about_commonparameters 」と入力します。

Input Types

Return Types

関連項目

Get-SPODataConnectionSettingMetaData