ManagedPropertyCollection.Item 属性 (Microsoft.Office.Server.Search.Administration)
Gets the specified managed property from the collection of managed properties.
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search (在 microsoft.office.server.search.dll 中)
声明
Public ReadOnly Default Property Item ( _
name As String _
) As ManagedProperty
用法
Dim instance As ManagedPropertyCollection
Dim name As String
Dim value As ManagedProperty
value = instance(name)
public ManagedProperty this [
string name
] { get; }
- name
A string that specifies the managed property name.
A ManagedProperty object that represents the managed property.
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>"];
ManagedPropertyCollection 类
ManagedPropertyCollection 成员
Microsoft.Office.Server.Search.Administration 命名空间