ManagedPropertyCollection.Create メソッド (Microsoft.Office.Server.Search.Administration)
新しい管理プロパティを管理プロパティのコレクションに追加します。
名前空間: Microsoft.Office.Server.Search.Administration
アセンブリ: Microsoft.Office.Server.Search (microsoft.office.server.search.dll 内)
構文
'宣言
Public Function Create ( _
name As String, _
managedType As ManagedDataType _
) As ManagedProperty
'使用
Dim instance As ManagedPropertyCollection
Dim name As String
Dim managedType As ManagedDataType
Dim returnValue As ManagedProperty
returnValue = instance.Create(name, managedType)
public ManagedProperty Create (
string name,
ManagedDataType managedType
)
パラメータ
- name
管理プロパティの名前を指定する文字列。
- managedType
管理プロパティのデータ型を指定する ManagedDataType 列挙からの値。
戻り値
管理プロパティを表す ManagedProperty オブジェクト。
備考
同じ名前を持つ管理プロパティが既に存在する場合は、Create メソッドによって例外がスローされます。
Create メソッドを使用するサンプル コードについては、「[方法] 管理プロパティを作成する」を参照してください。
関連項目
参照
ManagedPropertyCollection クラス
ManagedPropertyCollection メンバ
Microsoft.Office.Server.Search.Administration 名前空間