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 命名空间