Share via


SearchQueryAndSiteSettingsService.CreateProxy Method

Creates a new SPServiceApplicationProxy object using the specified parameters, or returns the existing object with the specified name.

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

Syntax

'Declaration
Public Function CreateProxy ( _
    name As String, _
    serviceApplication As SPServiceApplication, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Usage
Dim instance As SearchQueryAndSiteSettingsService
Dim name As String
Dim serviceApplication As SPServiceApplication
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy

returnValue = instance.CreateProxy(name, _
    serviceApplication, provisioningContext)
public SPServiceApplicationProxy CreateProxy(
    string name,
    SPServiceApplication serviceApplication,
    SPServiceProvisioningContext provisioningContext
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
The new proxy, or the existing proxy.

Implements

IServiceAdministration.CreateProxy(String, SPServiceApplication, SPServiceProvisioningContext)

Remarks

This method throws a NotSupportedException if the specified type is not the same type as the SearchServiceApplication.

See Also

Reference

SearchQueryAndSiteSettingsService Class

SearchQueryAndSiteSettingsService Members

Microsoft.Office.Server.Search.Administration Namespace