IServerRegistryServiceSetServerGroup Method

Sets the server group of the specified server.

Namespace: Dundas.BI.Configuration
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
bool SetServerGroup(
	string serverName,
	long? serverGroupId
)

Parameters

serverName  String
The name of the server.
serverGroupId  NullableInt64
The ID of the server group, or to leave the server unassigned to any server group.

Return Value

Boolean
if the server already belongs to the specified group; otherwise, .
Exceptions
ExceptionCondition
ArgumentExceptionserverName is empty or .
ArgumentOutOfRangeException

The specified server does not exist and the specified name is longer than MaxNameLength characters.

-or-

serverGroupId is less than or equal to zero.

NotFoundExceptionThe specified server group does not exist.
NoPrivilegeExceptionThe caller does not have system administration privileges.
InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks
The server will be automatically registered if it is not already.
See Also