SPServiceContext.GetContext - Méthode (SPServiceApplicationProxyGroup, SPSiteSubscriptionIdentifier)
Récupère le contexte de service qui est associé à l'instance spécifiée de SPServiceApplicationProxyGroup et SPSiteSubscriptionIdentifier.
Espace de noms : Microsoft.SharePoint
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Shared Function GetContext ( _
serviceApplicationProxyGroup As SPServiceApplicationProxyGroup, _
siteSubscriptionId As SPSiteSubscriptionIdentifier _
) As SPServiceContext
'Utilisation
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
)
Paramètres
serviceApplicationProxyGroup
Type : Microsoft.SharePoint.Administration.SPServiceApplicationProxyGroupUne instance de la classe SPServiceApplicationProxyGroup .
siteSubscriptionId
Type : Microsoft.SharePoint.SPSiteSubscriptionIdentifierUn objet SPSiteSubscriptionIdentifier .
Valeur renvoyée
Type : Microsoft.SharePoint.SPServiceContext
L'objet SPServiceContext de l'identificateur d'abonnement de groupe et le site proxy spécifié.