Share via


ManagedProperty class

Represents a managed property in the SharePoint Server search metadata property schema.

Inheritance hierarchy

System.Object
  Microsoft.Office.Server.Search.Administration.ManagedProperty

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class ManagedProperty
'Usage
Dim instance As ManagedProperty
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class ManagedProperty

Remarks

Managed properties are the set of properties that are available to the search user experience.

Use the AllManagedProperties property of the Schema class to get the collection of managed properties in the Search service application’s schema.

Use an indexer to return a single managed property from the ManagedPropertyCollection object. For example, assuming the collection is assigned to a variable named mProperties, use mProperties[index] in Microsoft Visual C# or mProperties(index) in Microsoft Visual Basic, where index is a string containing the name of the managed property.

To create a managed property, use the Create() method of the ManagedPropertyCollection class.

To delete a managed property, use the Delete method of the ManagedProperty class.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

ManagedProperty members

Microsoft.Office.Server.Search.Administration namespace