ISchemaOperations.CreateManagedProperty 方法
创建托管的属性。
命名空间: Microsoft.Office.Server.Search.Administration
程序集: Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)
语法
声明
<OperationContractAttribute> _
<FaultContractAttribute(GetType(SearchServiceApplicationFault))> _
Function CreateManagedProperty ( _
managedPropertyName As String, _
type As ManagedDataType, _
owner As SearchObjectOwner _
) As ManagedPropertyInfo
用法
Dim instance As ISchemaOperations
Dim managedPropertyName As String
Dim type As ManagedDataType
Dim owner As SearchObjectOwner
Dim returnValue As ManagedPropertyInfo
returnValue = instance.CreateManagedProperty(managedPropertyName, _
type, owner)
[OperationContractAttribute]
[FaultContractAttribute(typeof(SearchServiceApplicationFault))]
ManagedPropertyInfo CreateManagedProperty(
string managedPropertyName,
ManagedDataType type,
SearchObjectOwner owner
)
参数
managedPropertyName
类型:System.String新的托管属性的名称。
owner
类型:Microsoft.Office.Server.Search.Administration.SearchObjectOwner表示 Sharepoint 层次结构中包含的托管的属性。
返回值
类型:Microsoft.Office.Server.Search.Administration.ManagedPropertyInfo
新创建的托管的属性。
备注
如果以后修改托管的属性,必须使用UpdateManagedProperty(ManagedPropertyInfo, SearchObjectOwner)来更新托管的属性。