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.TypeThe type of service application proxy to create.
name
Type: System.StringThe name of the new service application proxy.
serviceApplicationUri
Type: System.UriThe address of the new service application.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextThe default provisioning parameters for the new service application proxy.
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