Share via


ManagedPropertyCollection.CreateCrawlMonProperty method

Creates or returns the special managed property named 'CrawlMonProperty'.

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

Syntax

'Declaration
Public Function CreateCrawlMonProperty As ManagedProperty
'Usage
Dim instance As ManagedPropertyCollection
Dim returnValue As ManagedProperty

returnValue = instance.CreateCrawlMonProperty()
public ManagedProperty CreateCrawlMonProperty()

Return value

Type: Microsoft.Office.Server.Search.Administration.ManagedProperty
The existing or newly created managed property.

Exceptions

Exception Condition
UnauthorizedAccessException

If the schema owner does not have the required privileges.

InvalidNameException

If the name of the property is invalid, or a property with the same name already exists.

InvalidPropertyTypeException

If the type of the property is invalid.

DatabaseException

If there was an error querying the database.

CouldNotModifySchemaException

If the schema could not be added.

See also

Reference

ManagedPropertyCollection class

ManagedPropertyCollection members

Microsoft.Office.Server.Search.Administration namespace