ServerContext.GetContext, méthode (String) (Microsoft.Office.Server)
Gets the ServerContext instance for the specified Shared Services Provider.
Espace de noms : Microsoft.Office.Server
Assembly : Microsoft.Office.Server (dans microsoft.office.server.dll)
Syntaxe
'Déclaration
Public Shared Function GetContext ( _
sharedResourceProviderName As String _
) As ServerContext
'Utilisation
Dim sharedResourceProviderName As String
Dim returnValue As ServerContext
returnValue = ServerContext.GetContext(sharedResourceProviderName)
public static ServerContext GetContext (
string sharedResourceProviderName
)
Paramètres
- sharedResourceProviderName
The name of a Shared Resource Provider in the local farm.
Valeur de retour
A ServerContext object.
Exemple
//replace SSP_GUID with a string containing the application GUID for the SSP //hosting the search service
SearchContext srchContext = ServerContext.GetContext("SSP_GUID");
Voir aussi
Référence
ServerContext, classe
Membres ServerContext
Microsoft.Office.Server, espace de noms