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.String

    The name of the new managed property.

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.

See also

Reference

ISchemaOperations interface

ISchemaOperations members

Microsoft.Office.Server.Search.Administration namespace