Share via


SearchQueryAndSiteSettingsServiceProxy.CreateProxy method

Creates an instance of the specified service application proxy type.

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

Syntax

'Declaration
Public Function CreateProxy ( _
    serviceApplicationProxyType As Type, _
    name As String, _
    serviceApplicationUri As Uri, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Usage
Dim instance As SearchQueryAndSiteSettingsServiceProxy
Dim serviceApplicationProxyType As Type
Dim name As String
Dim serviceApplicationUri As Uri
Dim provisioningContext As SPServiceProvisioningContext
Dim returnValue As SPServiceApplicationProxy

returnValue = instance.CreateProxy(serviceApplicationProxyType, _
    name, serviceApplicationUri, provisioningContext)
public SPServiceApplicationProxy CreateProxy(
    Type serviceApplicationProxyType,
    string name,
    Uri serviceApplicationUri,
    SPServiceProvisioningContext provisioningContext
)

Parameters

  • serviceApplicationProxyType
    Type: System.Type

    The type of service application proxy to create.

  • name
    Type: System.String

    The name of the new service application proxy.

  • serviceApplicationUri
    Type: System.Uri

    The address of the new service application.

Return value

Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
A new service application proxy.

Implements

IServiceProxyAdministration.CreateProxy(Type, String, Uri, SPServiceProvisioningContext)

Remarks

This method creates the proxy for the specified SearchServiceApplication type.

See also

Reference

SearchQueryAndSiteSettingsServiceProxy class

SearchQueryAndSiteSettingsServiceProxy members

Microsoft.Office.Server.Search.Administration namespace