Category.GetCrawledProperty 方法 (Guid, String)
查找已爬网的属性。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function GetCrawledProperty ( _
propset As Guid, _
propertyName As String _
) As CrawledProperty
用法
Dim instance As Category
Dim propset As Guid
Dim propertyName As String
Dim returnValue As CrawledProperty
returnValue = instance.GetCrawledProperty(propset, _
propertyName)
public CrawledProperty GetCrawledProperty(
Guid propset,
string propertyName
)
参数
propset
类型:System.Guid指定的属性设置为该已爬网属性的 GUID。
propertyName
类型:System.String已爬网属性的名称。
返回值
类型:Microsoft.Office.Server.Search.Administration.CrawledProperty
CrawledProperty 对象,该对象表示的已爬网的属性。
异常
异常 | 条件 |
---|---|
UnauthorizedAccessException | 如果用户不具有所需的权限。 |
DatabaseException | 如果查询数据库时出错。 |
ObjectNotFoundException | 如果属性集或已爬网的属性是未知的。 |