Share via


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

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.

See also

Reference

AppPrincipalManager class

AppPrincipalManager members

Microsoft.SharePoint.Client namespace