This topic has not yet been rated - Rate this topic

ManagedPropertyCollection.Create Method

Adds a new managed property to the managed property collection.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
public ManagedProperty Create(
	string name,
	ManagedDataType managedType
)

Parameters

name
Type: System.String
A string that specifies the name for the managed property.
managedType
Type: Microsoft.Office.Server.Search.Administration.ManagedDataType
A value from the ManagedDataType enumeration that specifies the data type for the managed property.

Return Value

Type: Microsoft.Office.Server.Search.Administration.ManagedProperty
A ManagedProperty object that represents the managed property.

If a managed property with the same name already exists, the Create method throws an exception.

For sample code using the Create method, see How to: Create a Managed Property.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ