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

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.

See also

Reference

SPAppPrincipalManager class

SPAppPrincipalManager members

Microsoft.SharePoint namespace