Category.CreateCrawledProperty 方法 (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 GetCrawledProperty(string,bool,Guid) instead.")> _
Public Function CreateCrawledProperty ( _
    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.CreateCrawledProperty(propertyName, _
    isNameEnum, propset, variantType)
[ObsoleteAttribute("VariantType is no longer supported. Use GetCrawledProperty(string,bool,Guid) instead.")]
public CrawledProperty CreateCrawledProperty(
    string propertyName,
    bool isNameEnum,
    Guid propset,
    int variantType
)

参数

  • propertyName
    类型:System.String

    一个字符串,指定的已爬网属性的名称。

  • isNameEnum
    类型:System.Boolean

    一个布尔值,该值指示是否是可枚举的已爬网的属性名称。

  • propset
    类型:System.Guid

    指定的属性设置为该已爬网属性的 GUID。

  • variantType
    类型:System.Int32

    32 位整数,它指定的已爬网属性变量数据类型。

返回值

类型:Microsoft.Office.Server.Search.Administration.CrawledProperty
表示创建的已爬网的属性的CrawledProperty对象。

另请参阅

引用

Category 类

Category 成员

CreateCrawledProperty 重载

Microsoft.Office.Server.Search.Administration 命名空间