ManagedProperty.AddAlias method

Adds an alias to this managed property.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Sub AddAlias ( _
    aliasName As String _
)
'Usage
Dim instance As ManagedProperty
Dim aliasName As String

instance.AddAlias(aliasName)
public void AddAlias(
    string aliasName
)

Parameters

  • aliasName
    Type: System.String

    A string that contains the alias name.

Exceptions

Exception Condition
UnauthorizedAccessException

If the schema owner does not have the required privileges.

InvalidOperationException

If this object is not backed.

InvalidManagedPropertyValue

If the new alias is [null] or has an invalid value.

DatabaseException

If there was an error querying the database.

CouldNotModifySchemaException

If the schema could not be added.

See also

Reference

ManagedProperty class

ManagedProperty members

Microsoft.Office.Server.Search.Administration namespace