AppPrincipalManager.LookupAppPrincipal method
Looks up an app principal.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function LookupAppPrincipal ( _
identityProvider As AppPrincipalIdentityProvider, _
appPrincipalName As AppPrincipalName _
) As AppPrincipal
'Usage
Dim instance As AppPrincipalManager
Dim identityProvider As AppPrincipalIdentityProvider
Dim appPrincipalName As AppPrincipalName
Dim returnValue As AppPrincipal
returnValue = instance.LookupAppPrincipal(identityProvider, _
appPrincipalName)
public AppPrincipal LookupAppPrincipal(
AppPrincipalIdentityProvider identityProvider,
AppPrincipalName appPrincipalName
)
Parameters
identityProvider
Type: Microsoft.SharePoint.Client.AppPrincipalIdentityProviderThe identity provider of the app principal.
appPrincipalName
Type: Microsoft.SharePoint.Client.AppPrincipalNameThe name of the app principal.
Return value
Type: Microsoft.SharePoint.Client.AppPrincipal
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.