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
name
Type: System.StringO nome do objeto SPServiceApplicationProxy .
serviceApplication
Type: Microsoft.SharePoint.Administration.SPServiceApplicationO aplicativo de serviço ao qual se refere o objeto SPServiceApplicationProxy .
provisioningContext
Type: Microsoft.SharePoint.Administration.SPServiceProvisioningContextO contexto da qual obter o pool de aplicativos, que hospeda o objeto que gerencia o SPServiceApplicationProxy.
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