AppPrincipalName.CreateFromAppPrincipalIdentifier method
Create an instance of AppPrincipalName for the specified app principal identifier.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Function CreateFromAppPrincipalIdentifier ( _
context As ClientRuntimeContext, _
appPrincipalIdentifier As String _
) As AppPrincipalName
'Usage
Dim context As ClientRuntimeContext
Dim appPrincipalIdentifier As String
Dim returnValue As AppPrincipalName
returnValue = AppPrincipalName.CreateFromAppPrincipalIdentifier(context, _
appPrincipalIdentifier)
public static AppPrincipalName CreateFromAppPrincipalIdentifier(
ClientRuntimeContext context,
string appPrincipalIdentifier
)
Parameters
context
Type: Microsoft.SharePoint.Client.ClientRuntimeContextThe runtime context.
appPrincipalIdentifier
Type: System.StringThe app principal identifier of the desired app principal.
Return value
Type: Microsoft.SharePoint.Client.AppPrincipalName
An instance of AppPrincipalName that encapsulates the specified app principal identifier.