Category.CreateCrawledProperty Method
Creates a new crawled property within the category.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Schema
Assembly: Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)
Syntax
'Declaration
Function CreateCrawledProperty ( _
propertyName As String, _
propset As Guid, _
variantType As Integer _
) As CrawledProperty
'Usage
Dim instance As Category
Dim propertyName As String
Dim propset As Guid
Dim variantType As Integer
Dim returnValue As CrawledProperty
returnValue = instance.CreateCrawledProperty(propertyName, _
propset, variantType)
CrawledProperty CreateCrawledProperty(
string propertyName,
Guid propset,
int variantType
)
Parameters
propertyName
Type: System.StringA string that specifies the name of the crawled property.
propset
Type: System.GuidA GUID that specifies the property set for the crawled property.
variantType
Type: System.Int32An integer that specifies the variant type of the crawled property.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledProperty
A CrawledProperty object that represents the created crawled property.
Exceptions
Exception | Condition |
---|---|
AdminException | If the crawled property already exists. |
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace