ManagementGroup.Connect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.