Share via


SPAppPrincipalCredential.CreateFromKeyGroup method

Creates an instance of [SPAppPrincipalCredential] that wraps a key group identifier.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function CreateFromKeyGroup ( _
    keyGroupIdentifier As Guid _
) As SPAppPrincipalCredential
'Usage
Dim keyGroupIdentifier As Guid
Dim returnValue As SPAppPrincipalCredential

returnValue = SPAppPrincipalCredential.CreateFromKeyGroup(keyGroupIdentifier)
public static SPAppPrincipalCredential CreateFromKeyGroup(
    Guid keyGroupIdentifier
)

Parameters

  • keyGroupIdentifier
    Type: System.Guid

    The key group identifier.

Return value

Type: Microsoft.SharePoint.SPAppPrincipalCredential
A new instance of [SPAppPrincipalCredential].

See also

Reference

SPAppPrincipalCredential class

SPAppPrincipalCredential members

Microsoft.SharePoint namespace