SPAppPrincipalManager.LookupAppPrincipal method
Looks up an app principal.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function LookupAppPrincipal ( _
identityProvider As SPAppPrincipalIdentityProvider, _
appPrincipalName As SPAppPrincipalName _
) As SPAppPrincipal
'Usage
Dim instance As SPAppPrincipalManager
Dim identityProvider As SPAppPrincipalIdentityProvider
Dim appPrincipalName As SPAppPrincipalName
Dim returnValue As SPAppPrincipal
returnValue = instance.LookupAppPrincipal(identityProvider, _
appPrincipalName)
public SPAppPrincipal LookupAppPrincipal(
SPAppPrincipalIdentityProvider identityProvider,
SPAppPrincipalName appPrincipalName
)
Parameters
identityProvider
Type: Microsoft.SharePoint.SPAppPrincipalIdentityProviderThe identity provider of the app principal.
appPrincipalName
Type: Microsoft.SharePoint.SPAppPrincipalNameThe app principal name.
Return value
Type: Microsoft.SharePoint.SPAppPrincipal
The app principal, or a null reference (Nothing in Visual Basic) if one could not be found for the specified identity provider and app principal name.