Schema.GetCrawledProperty method (Guid, String)

Returns a CrawledProperty object representing a crawled property from the search service's schema.

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, _
    name As String _
) As CrawledProperty
'Usage
Dim instance As Schema
Dim propset As Guid
Dim name As String
Dim returnValue As CrawledProperty

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

Parameters

  • propset
    Type: System.Guid

    A GUID that specifies the property set of the crawled property to retrieve.

  • name
    Type: System.String

    A string that specifies the name of the crawled property to retrieve.

Return value

Type: Microsoft.Office.Server.Search.Administration.CrawledProperty
A CrawledProperty object representing the crawled property that matches the property set, name, and data type values specified in the parameters.

Exceptions

Exception Condition
UnauthorizedAccessException

If the schema owner does not have the required privileges.

DatabaseException

If there was an error querying the database.

ObjectNotFoundException

If the crawled property cannot be found.

See also

Reference

Schema class

Schema members

GetCrawledProperty overload

Microsoft.Office.Server.Search.Administration namespace