Schema.GetCrawledProperty 方法 (Guid, String)
返回一个CrawledProperty对象,该对象表示从搜索服务架构的已爬网的属性。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
Public Function GetCrawledProperty ( _
propset As Guid, _
name As String _
) As CrawledProperty
用法
Dim instance As Schema
Dim propset As Guid
Dim name As String
Dim returnValue As CrawledProperty
returnValue = instance.GetCrawledProperty(propset, _
name)
public CrawledProperty GetCrawledProperty(
Guid propset,
string name
)
参数
propset
类型:System.Guid指定的属性的 GUID 的已爬网属性设置为检索。
name
类型:System.String一个字符串,指定要检索的已爬网属性的名称。
返回值
类型:Microsoft.Office.Server.Search.Administration.CrawledProperty
表示属性组相匹配的已爬网的属性的CrawledProperty对象,名称和数据类型的参数中指定的值。
异常
异常 | 条件 |
---|---|
UnauthorizedAccessException | 如果架构所有者不具有所需的权限。 |
DatabaseException | 如果查询数据库时出错。 |
ObjectNotFoundException | 如果找不到已爬网的属性。 |