: ServerContext.GetContext (Método) (String) (Microsoft.Office.Server)
Gets the ServerContext instance for the specified Shared Services Provider.
Espacio de nombres:
Ensamblado: Microsoft.Office.Server (in microsoft.office.server.dll)
Sintaxis
'Declaración
Public Shared Function GetContext ( _
sharedResourceProviderName As String _
) As ServerContext
'Uso
Dim sharedResourceProviderName As String
Dim returnValue As ServerContext
returnValue = ServerContext.GetContext(sharedResourceProviderName)
public static ServerContext GetContext (
string sharedResourceProviderName
)
Parámetros
- sharedResourceProviderName
The name of a Shared Resource Provider in the local farm.
Valor devuelto
A ServerContext object.
Ejemplo
//replace SSP_GUID with a string containing the application GUID for the SSP //hosting the search service
SearchContext srchContext = ServerContext.GetContext("SSP_GUID");
Vea también
Referencia
ServerContext (Clase)
ServerContext (Miembros)
Microsoft.Office.Server (Espacio de nombres)