Freigeben über


SPAppCatalog.GetAppInstance-Methode (SPWeb, Guid)

Dient zum Abrufen aller SPAppInstance -Objekte mit der angegebenen ID, die von der CreateAppInstance -Methode zurückgegeben.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function GetAppInstance ( _
    web As SPWeb, _
    appInstanceId As Guid _
) As SPAppInstance
'Usage
Dim web As SPWeb
Dim appInstanceId As Guid
Dim returnValue As SPAppInstance

returnValue = SPAppCatalog.GetAppInstance(web, _
    appInstanceId)
public static SPAppInstance GetAppInstance(
    SPWeb web,
    Guid appInstanceId
)

Parameter

Rückgabewert

Typ: Microsoft.SharePoint.Administration.SPAppInstance
Alle SPAppInstance -Objekte für die angegebene web und appInstanceId -Werte.

Ausnahmen

Ausnahme Bedingung
System.ArgumentNullException

Der Parameter web oder die Parameterwerte appInstanceId sind ein Nullverweis (Nothing in Visual Basic).

System.InvalidOperationException

Es wurden keine Objekte SPAppInstance gefunden.

Siehe auch

Referenz

SPAppCatalog Klasse

SPAppCatalog-Member

GetAppInstance-Überladung

Microsoft.SharePoint.Administration-Namespace