次の方法で共有


ManagedPropertyCollection.Item プロパティ (Microsoft.Office.Server.Search.Administration)

管理プロパティのコレクションから指定された管理プロパティを取得します。

名前空間: 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
    管理プロパティ名を指定する文字列。

プロパティ値

管理プロパティを表す ManagedProperty オブジェクト。

以下のコード例は、ManagedPropertyCollection クラスの Item プロパティを使用して、特定の管理プロパティを表す ManagedProperty オブジェクトを取得する方法を示しています。

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 名前空間