ResultItemTypeManager.GetResultItemTypeByID 方法
从搜索服务中检索特定的 ResultItemType
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function GetResultItemTypeByID ( _
id As Integer, _
owner As SearchObjectOwner _
) As ResultItemType
用法
Dim instance As ResultItemTypeManager
Dim id As Integer
Dim owner As SearchObjectOwner
Dim returnValue As ResultItemType
returnValue = instance.GetResultItemTypeByID(id, _
owner)
public ResultItemType GetResultItemTypeByID(
int id,
SearchObjectOwner owner
)
参数
id
类型:System.Int32若要检索 ResultItemType 的 id
owner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner表示相同的站点上下文所需的 ResultItemType SearchObjectOwner
返回值
类型:Microsoft.Office.Server.Search.Administration.ResultItemType