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
)
參數
appPrincipal
類型:Microsoft.SharePoint.Client.AppPrincipal應用程式原則。
credential
類型:Microsoft.SharePoint.Client.AppPrincipalCredential若要新增認證。