Condividi tramite


SPAppPrincipalName.CreateFromAppPrincipalIdentifier method

Creates an instance of [SPAppPrincipalName] for the specified app principal identifier.

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

Syntax

'Declaration
Public Shared Function CreateFromAppPrincipalIdentifier ( _
    appPrincipalIdentifier As String _
) As SPAppPrincipalName
'Usage
Dim appPrincipalIdentifier As String
Dim returnValue As SPAppPrincipalName

returnValue = SPAppPrincipalName.CreateFromAppPrincipalIdentifier(appPrincipalIdentifier)
public static SPAppPrincipalName CreateFromAppPrincipalIdentifier(
    string appPrincipalIdentifier
)

Parameters

  • appPrincipalIdentifier
    Type: System.String

    The app principal identifier of the desired app principal.

Return value

Type: Microsoft.SharePoint.SPAppPrincipalName
An instance of [SPAppPrincipalName] that encapsulates the specified app principal identifier.

See also

Reference

SPAppPrincipalName class

SPAppPrincipalName members

Microsoft.SharePoint namespace