Category.GetCrawledProperty Method
Retrieves a crawled property with a specified name, property set, and variant type.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Schema
Assembly: Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)
Syntax
'Declaration
Function GetCrawledProperty ( _
Propset As Guid, _
CrawledPropertyName As String, _
VariantType As Integer _
) As CrawledProperty
'Usage
Dim instance As Category
Dim Propset As Guid
Dim CrawledPropertyName As String
Dim VariantType As Integer
Dim returnValue As CrawledProperty
returnValue = instance.GetCrawledProperty(Propset, _
CrawledPropertyName, VariantType)
CrawledProperty GetCrawledProperty(
Guid Propset,
string CrawledPropertyName,
int VariantType
)
Parameters
Propset
Type: System.GuidA GUID specifying the property set for the crawled property.
CrawledPropertyName
Type: System.StringA string specifying the crawled property name.
VariantType
Type: System.Int32An integer specifying the variant type of the crawled property.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledProperty
A CrawledProperty object.
Exceptions
Exception | Condition |
---|---|
AdminException | If the crawled property does not exist. |
See Also
Reference
Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace