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
name
Type: System.StringThe name of the SPServiceApplicationProxy object.
serviceApplication
Type: Microsoft.SharePoint.Administration.SPServiceApplicationThe service application to which the SPServiceApplicationProxy object refers.
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextThe context from which to get the application pool, which hosts the object that manages the SPServiceApplicationProxy.
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