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
)
参数
name
类型:System.String
serviceApplication
类型:Microsoft.SharePoint.Administration.SPServiceApplicationSPServiceApplicationProxy对象所引用的服务应用程序。
provisioningContext
类型:Microsoft.SharePoint.Administration.SPServiceProvisioningContext从其获取应用程序池,哪些主机管理SPServiceApplicationProxy的对象上下文。
返回值
类型:Microsoft.SharePoint.Administration.SPServiceApplicationProxy
新的代理或现有代理。
实现
IServiceAdministration.CreateProxy(String, SPServiceApplication, SPServiceProvisioningContext)
备注
如果指定的类型不是与SearchServiceApplication相同的类型,则此方法将引发NotSupportedException 。
另请参阅
引用
SearchQueryAndSiteSettingsService 类