Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
ServiceContext
Type: Microsoft.SharePoint.SPServiceContextThe service context to get the proxy.
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