SearchContext.GetContext メソッド (ServerContext) (Microsoft.Office.Server.Search.Administration)
ServerContext オブジェクトの検索コンテキストのインスタンスを取得します。
名前空間: Microsoft.Office.Server.Search.Administration
アセンブリ: Microsoft.Office.Server.Search (microsoft.office.server.search.dll 内)
構文
'宣言
Public Shared Function GetContext ( _
serverContext As ServerContext _
) As SearchContext
'使用
Dim serverContext As ServerContext
Dim returnValue As SearchContext
returnValue = SearchContext.GetContext(serverContext)
public static SearchContext GetContext (
ServerContext serverContext
)
パラメータ
- serverContext
共有サービス プロバイダの検索コンテキストを表す ServerContext オブジェクト。
戻り値
共有サービス プロバイダのサーバー コンテキストを表す SearchContext オブジェクト。
備考
SearchContext クラスおよび エンタープライズ検索 の管理オブジェクト モデルの詳細については、「エンタープライズ検索管理オブジェクト モデルを使うにあたって」および「[方法] 検索サービス プロバイダに検索コンテキストを返す」を参照してください。
関連項目
参照
SearchContext クラス
SearchContext メンバ
Microsoft.Office.Server.Search.Administration 名前空間