Category.GetCrawledProperty method (Guid, String)

Finds a crawled property.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function GetCrawledProperty ( _
    propset As Guid, _
    propertyName As String _
) As CrawledProperty
'Usage
Dim instance As Category
Dim propset As Guid
Dim propertyName As String
Dim returnValue As CrawledProperty

returnValue = instance.GetCrawledProperty(propset, _
    propertyName)
public CrawledProperty GetCrawledProperty(
    Guid propset,
    string propertyName
)

Parameters

  • propset
    Type: System.Guid

    A GUID that specifies the property set for the crawled property.

  • propertyName
    Type: System.String

    The name of the crawled property.

Return value

Type: Microsoft.Office.Server.Search.Administration.CrawledProperty
A CrawledProperty object that represents the crawled property.

Exceptions

Exception Condition
UnauthorizedAccessException

If the user does not have the required privileges.

DatabaseException

If there is an error querying the database.

ObjectNotFoundException

If the property set or the crawled property is unknown.

See also

Reference

Category class

Category members

GetCrawledProperty overload

Microsoft.Office.Server.Search.Administration namespace