Compartilhar via


SearchQueryAndSiteSettingsService.CreateProxy method

Cria um novo objeto de SPServiceApplicationProxy com os parâmetros especificados, ou retorna o objeto existente com o nome especificado.

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

Syntax

'Declaração
Public Function CreateProxy ( _
    name As String, _
    serviceApplication As SPServiceApplication, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
'Uso
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
)

Parâmetros

Valor retornado

Type: Microsoft.SharePoint.Administration.SPServiceApplicationProxy
O novo proxy ou o proxy existente.

Implements

IServiceAdministration.CreateProxy(String, SPServiceApplication, SPServiceProvisioningContext)

Comentários

Este método lança um NotSupportedException se o tipo especificado não é do mesmo tipo que o SearchServiceApplication.

Ver também

Referência

SearchQueryAndSiteSettingsService class

SearchQueryAndSiteSettingsService members

Microsoft.Office.Server.Search.Administration namespace