Partager via


SearchServiceApplicationProxy.GetProxy Method

Gets the default Search service application proxy in the specified service context.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Shared Function GetProxy ( _
    ServiceContext As SPServiceContext _
) As ISearchServiceApplication
'Usage
Dim ServiceContext As SPServiceContext
Dim returnValue As ISearchServiceApplication

returnValue = SearchServiceApplicationProxy.GetProxy(ServiceContext)
public static ISearchServiceApplication GetProxy(
    SPServiceContext ServiceContext
)

Parameters

Return Value

Type: Microsoft.Office.Server.Search.Administration.ISearchServiceApplication
The default Search service application proxy in the specified service context.

Exceptions

Exception Condition
ArgumentNullException

ServiceContext is null .

SearchServiceNotFoundException

There is no default Search service application proxy in the service context specified by the ServiceContext parameter.

Remarks

The ServiceContext parameter must not be null .

See Also

Reference

SearchServiceApplicationProxy Class

SearchServiceApplicationProxy Members

Microsoft.Office.Server.Search.Administration Namespace