Category.CreateOrGetCrawledProperty method (String, Boolean, Guid, Int32)
NOTE: This API is now obsolete.
Creates or returns a crawled property for a category.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<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
'Usage
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
)
Parameters
propertyName
Type: System.StringA string that specifies the name for the crawled property.
isNameEnum
Type: System.BooleanA Boolean value that indicates if the crawled property name is enumerable.
propset
Type: System.GuidA GUID that specifies the property set for the crawled property.
variantType
Type: System.Int32A 32-bit integer that specifies the variant data type of the crawled property.
Return value
Type: Microsoft.Office.Server.Search.Administration.CrawledProperty
A CrawledProperty object representing the crawled property created or returned for the category.