Category.CreateOrGetCrawledProperty 方法 (String, Boolean, Guid, Int32)
请注意:此 API 现在已过时。
创建或返回某个类别的已爬网的属性。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
<ObsoleteAttribute("VariantType is no longer supported. Use CreateOrGetCrawledProperty(string,bool,Guid) instead.")> _
Public Function CreateOrGetCrawledProperty ( _
propertyName As String, _
isNameEnum As Boolean, _
propset As Guid, _
variantType As Integer _
) As CrawledProperty
用法
Dim instance As Category
Dim propertyName As String
Dim isNameEnum As Boolean
Dim propset As Guid
Dim variantType As Integer
Dim returnValue As CrawledProperty
returnValue = instance.CreateOrGetCrawledProperty(propertyName, _
isNameEnum, propset, variantType)
[ObsoleteAttribute("VariantType is no longer supported. Use CreateOrGetCrawledProperty(string,bool,Guid) instead.")]
public CrawledProperty CreateOrGetCrawledProperty(
string propertyName,
bool isNameEnum,
Guid propset,
int variantType
)
参数
propertyName
类型:System.String一个字符串,指定的已爬网属性的名称。
isNameEnum
类型:System.Boolean一个布尔值,该值指示是否是可枚举的已爬网的属性名称。
propset
类型:System.Guid指定的属性设置为该已爬网属性的 GUID。
variantType
类型:System.Int3232 位整数,它指定的已爬网属性变量数据类型。
返回值
类型:Microsoft.Office.Server.Search.Administration.CrawledProperty
一个CrawledProperty对象,该对象表示的已爬网的属性返回该类别或创建。