SPAppPrincipalName.CreateFromNameIdentifier method
Creates an instance of [SPAppPrincipalName] for the specified name identifier.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function CreateFromNameIdentifier ( _
nameIdentifier As String _
) As SPAppPrincipalName
'Usage
Dim nameIdentifier As String
Dim returnValue As SPAppPrincipalName
returnValue = SPAppPrincipalName.CreateFromNameIdentifier(nameIdentifier)
public static SPAppPrincipalName CreateFromNameIdentifier(
string nameIdentifier
)
Parameters
nameIdentifier
Type: System.StringThe name identifier of the desired app principal.
Return value
Type: Microsoft.SharePoint.SPAppPrincipalName
An instance of [SPAppPrincipalName] that encapsulates the specified name identifier.