SearchQueryAndSiteSettingsService.CreateProxy 方法

创建一个新的SPServiceApplicationProxy对象,使用指定的参数,或返回具有指定名称的现有对象。

命名空间:  Microsoft.Office.Server.Search.Administration
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Function CreateProxy ( _
    name As String, _
    serviceApplication As SPServiceApplication, _
    provisioningContext As SPServiceProvisioningContext _
) As SPServiceApplicationProxy
用法
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
)

参数

返回值

类型:Microsoft.SharePoint.Administration.SPServiceApplicationProxy
新的代理或现有代理。

实现

IServiceAdministration.CreateProxy(String, SPServiceApplication, SPServiceProvisioningContext)

备注

如果指定的类型不是与SearchServiceApplication相同的类型,则此方法将引发NotSupportedException

另请参阅

引用

SearchQueryAndSiteSettingsService 类

SearchQueryAndSiteSettingsService 成员

Microsoft.Office.Server.Search.Administration 命名空间