ManagedPropertyCollection.Item Property
Gets the specified managed property from the collection of managed properties.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
name As String _
) As ManagedProperty
Get
'Usage
Dim instance As ManagedPropertyCollection
Dim name As String
Dim value As ManagedProperty
value = instance(name)
public ManagedProperty this[
string name
] { get; }
Parameters
name
Type: System.StringA string that specifies the managed property name.
Property Value
Type: Microsoft.Office.Server.Search.Administration.ManagedProperty
A ManagedProperty object that represents the managed property.
Examples
The following code sample demonstrates how to use the Item property of the ManagedPropertyCollection class to retrieve a ManagedProperty object representing a specific managed property.
using Microsoft.SharePoint;
using Microsoft.Office.Server.Search.Administration;
…
Schema sspSchema = new Schema(SearchContext.GetContext(new SPSite("http://<SiteName>")));
ManagedPropertyCollection properties = sspSchema.AllManagedProperties;
ManagedProperty property = properties["<PropertyName>"];
See Also
Reference
ManagedPropertyCollection Class