Share via


ManagementGroup.Connect Method

Definition

Creates a new management group object.

Overloads

Connect(ManagementGroupConnectionSettings)

This creates a new ManagementGroup object.

Connect(String)

This method connects to a particular MOM management server.

Connect(ManagementGroupConnectionSettings)

This creates a new ManagementGroup object.

public:
 static Microsoft::EnterpriseManagement::ManagementGroup ^ Connect(Microsoft::EnterpriseManagement::ManagementGroupConnectionSettings ^ connectionSettings);
public static Microsoft.EnterpriseManagement.ManagementGroup Connect (Microsoft.EnterpriseManagement.ManagementGroupConnectionSettings connectionSettings);
static member Connect : Microsoft.EnterpriseManagement.ManagementGroupConnectionSettings -> Microsoft.EnterpriseManagement.ManagementGroup
Public Shared Function Connect (connectionSettings As ManagementGroupConnectionSettings) As ManagementGroup

Parameters

connectionSettings
ManagementGroupConnectionSettings

The connection settings.

Returns

Returns a newManagementGroupobject.

Examples

For an example, see How to Connect to an SDK Service by Using Specified User Credentials.

Applies to

Connect(String)

This method connects to a particular MOM management server.

public:
 static Microsoft::EnterpriseManagement::ManagementGroup ^ Connect(System::String ^ serverName);
public static Microsoft.EnterpriseManagement.ManagementGroup Connect (string serverName);
static member Connect : string -> Microsoft.EnterpriseManagement.ManagementGroup
Public Shared Function Connect (serverName As String) As ManagementGroup

Parameters

serverName
String

The server to connect to.

Returns

The ManagementGroup object to use for further tasks.

Exceptions

serverName is null.

serverName.Length is 0.

Applies to