SetAlias method

**This method is obsolete in V. 7.**

Sets the alias to be used instead of the server name in eRoom URLs.

Syntax


C++
HRESULT SetAlias(
   BSTR Alias,
   VARIANT_BOOL UseAlias,
   VARIANT_BOOL Validate)
Scripting languages
SvrManager.SetAlias
   Alias as String,
   UseAlias as Boolean,
   Validate as Boolean

Parameters


Alias

The new value for the server alias.

UseAlias

Indicates whether eRoom should start using the new alias immediately. If TRUE, it will take effect immediately, and will have the side-effect of setting the UseAlias property to TRUE, if it is not already TRUE. If FALSE, UseAlias will be set to FALSE if not already FALSE, and the server name will be used in eRoom URLs until such time as UseAlias is explicitly set to TRUE [optional, default = TRUE].

Validate

Indicates whether eRoom should validate the provided alias to make sure it references a real server. If TRUE, and the provided alias is invalid, EROOM_E_INVALIDARG is returned. If FALSE, the name is accepted without checking its validity [optional, default = TRUE].

Return value


C++

The return code.

Scripting languages

None.

Home

Applies to

IERUSvrManager