共用方式為


AppPrincipalManager.AddAppPrincipalCredential 方法

加入新的憑證的主體現有的應用程式。

命名空間:  Microsoft.SharePoint.Client
組件:  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public Sub AddAppPrincipalCredential ( _
    appPrincipal As AppPrincipal, _
    credential As AppPrincipalCredential _
)
'用途
Dim instance As AppPrincipalManager
Dim appPrincipal As AppPrincipal
Dim credential As AppPrincipalCredential

instance.AddAppPrincipalCredential(appPrincipal, _
    credential)
public void AddAppPrincipalCredential(
    AppPrincipal appPrincipal,
    AppPrincipalCredential credential
)

參數

請參閱

參照

AppPrincipalManager 類別

AppPrincipalManager 成員

Microsoft.SharePoint.Client 命名空間