ISchemaOperations.CreateManagedProperty method
Create a managed property.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<OperationContractAttribute> _
<FaultContractAttribute(GetType(SearchServiceApplicationFault))> _
Function CreateManagedProperty ( _
managedPropertyName As String, _
type As ManagedDataType, _
owner As SearchObjectOwner _
) As ManagedPropertyInfo
'Usage
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
)
Parameters
managedPropertyName
Type: System.StringThe name of the new managed property.
type
Type: Microsoft.Office.Server.Search.Administration.ManagedDataTypeThe ManagedDataType of the new managed property.
owner
Type: Microsoft.Office.Server.Search.Administration.SearchObjectOwnerRepresents the Sharepoint hierarchy in which the managed property is contained.
Return value
Type: Microsoft.Office.Server.Search.Administration.ManagedPropertyInfo
The newly created managed property.
Remarks
If the managed property is to be modified later, UpdateManagedProperty(ManagedPropertyInfo, SearchObjectOwner) must be used in order to update the managed property.