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
serviceApplicationProxyGroup
Typ: Microsoft.SharePoint.Administration.SPServiceApplicationProxyGroupEine Instanz der SPServiceApplicationProxyGroup -Klasse.
siteSubscriptionId
Typ: Microsoft.SharePoint.SPSiteSubscriptionIdentifierEin SPSiteSubscriptionIdentifier -Objekt.
Rückgabewert
Typ: Microsoft.SharePoint.SPServiceContext
Das SPServiceContext -Objekt des angegebenen Proxy Gruppe und Standort Abonnementbezeichner.