A Sandcastle Documented Class Library

# IServerRegistryService CreateServerGroup Method

Creates a server group.

Namespace: Dundas.BI.Configuration
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    long CreateServerGroup(
    	string name
    )

    Function CreateServerGroup (
    	name As String
    ) As Long

    long long CreateServerGroup(
    	String^ name
    )

    abstract CreateServerGroup :
            name : string -> int64

#### Parameters

name
  Type: System
  String
  The server group name.

#### Return Value

Type: Int64
The ID of the newly-created group, or -1 if a group with the specified name already exists.
Exceptions

Exception | Condition
--- | ---
ArgumentException | name is empty or .
ArgumentOutOfRangeException | name is longer than MaxNameLength characters.
NoPrivilegeException | The caller does not have system administration privileges.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IServerRegistryService Interface
Dundas.BI.Configuration Namespace