AppPrincipalCredential.CreateFromKeyGroup method
Creates an instance of AppPrincipalCredential that wraps a key group identifier.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Function CreateFromKeyGroup ( _
context As ClientRuntimeContext, _
keyGroupIdentifier As Guid _
) As AppPrincipalCredential
'Usage
Dim context As ClientRuntimeContext
Dim keyGroupIdentifier As Guid
Dim returnValue As AppPrincipalCredential
returnValue = AppPrincipalCredential.CreateFromKeyGroup(context, _
keyGroupIdentifier)
public static AppPrincipalCredential CreateFromKeyGroup(
ClientRuntimeContext context,
Guid keyGroupIdentifier
)
Parameters
context
Type: Microsoft.SharePoint.Client.ClientRuntimeContextThe runtime context.
keyGroupIdentifier
Type: System.GuidThe key group identifier.
Return value
Type: Microsoft.SharePoint.Client.AppPrincipalCredential
A new instance of AppPrincipalCredential.