Freigeben über


SPServiceContext.GetContext-Methode (SPServiceApplicationProxyGroup, SPSiteSubscriptionIdentifier)

Ruft den Kontext des Dienstes, der die mit der Instanz der angegebenen SPServiceApplicationProxyGroup und der SPSiteSubscriptionIdentifierist.

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

Syntax

'Declaration
Public Shared Function GetContext ( _
    serviceApplicationProxyGroup As SPServiceApplicationProxyGroup, _
    siteSubscriptionId As SPSiteSubscriptionIdentifier _
) As SPServiceContext
'Usage
Dim serviceApplicationProxyGroup As SPServiceApplicationProxyGroup
Dim siteSubscriptionId As SPSiteSubscriptionIdentifier
Dim returnValue As SPServiceContext

returnValue = SPServiceContext.GetContext(serviceApplicationProxyGroup, _
    siteSubscriptionId)
public static SPServiceContext GetContext(
    SPServiceApplicationProxyGroup serviceApplicationProxyGroup,
    SPSiteSubscriptionIdentifier siteSubscriptionId
)

Parameter

Rückgabewert

Typ: Microsoft.SharePoint.SPServiceContext
Das SPServiceContext -Objekt des angegebenen Proxy Gruppe und Standort Abonnementbezeichner.

Siehe auch

Referenz

SPServiceContext Klasse

SPServiceContext-Member

GetContext-Überladung

Microsoft.SharePoint-Namespace