ISchemaOperations.UpdateManagedProperty method
Update a managed property.
Namespace: Microsoft.Office.Server.Search.Administration
Assembly: Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)
Syntax
'Declaration
<FaultContractAttribute(GetType(SearchServiceApplicationFault))> _
<OperationContractAttribute> _
Function UpdateManagedProperty ( _
managedProperty As ManagedPropertyInfo, _
owner As SearchObjectOwner _
) As ManagedPropertyInfo
'Usage
Dim instance As ISchemaOperations
Dim managedProperty As ManagedPropertyInfo
Dim owner As SearchObjectOwner
Dim returnValue As ManagedPropertyInfo
returnValue = instance.UpdateManagedProperty(managedProperty, _
owner)
[FaultContractAttribute(typeof(SearchServiceApplicationFault))]
[OperationContractAttribute]
ManagedPropertyInfo UpdateManagedProperty(
ManagedPropertyInfo managedProperty,
SearchObjectOwner owner
)
Parameters
managedProperty
Type: Microsoft.Office.Server.Search.Administration.ManagedPropertyInfoThe managed property to update.
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 updated managed property.
Remarks
The mappings and aliases of the managed property will not updated. In order to update those, you need to use SetManagedPropertyMappings(ManagedPropertyInfo, IEnumerable<MappingInfo>, SearchObjectOwner) and SetManagedPropertyAliases(ManagedPropertyInfo, [], SearchObjectOwner).