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

  • keyGroupIdentifier
    Type: System.Guid

    The key group identifier.

Return value

Type: Microsoft.SharePoint.Client.AppPrincipalCredential
A new instance of AppPrincipalCredential.

See also

Reference

AppPrincipalCredential class

AppPrincipalCredential members

Microsoft.SharePoint.Client namespace