Partager via


SmsSiteConnectionNode.GetConnectionManagerInstance Method

Gets the connection manager instance for the requested connection type.

Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

'Usage
Dim instance As SmsSiteConnectionNode
Dim connectionManagerInstance As String
Dim returnValue As ConnectionManagerBase

returnValue = instance.GetConnectionManagerInstance(connectionManagerInstance)

Syntax

'Declaration
<PermissionSetAttribute(SecurityAction.LinkDemand, Name:="FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name:="FullTrust")> _
Public Function GetConnectionManagerInstance ( _
    connectionManagerInstance As String _
) As ConnectionManagerBase
[PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")] 
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust")] 
public ConnectionManagerBase GetConnectionManagerInstance (
    string connectionManagerInstance
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name=L"FullTrust")] 
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name=L"FullTrust")] 
public:
ConnectionManagerBase^ GetConnectionManagerInstance (
    String^ connectionManagerInstance
)
/** @attribute PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust") */ 
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust") */ 
public ConnectionManagerBase GetConnectionManagerInstance (
    String connectionManagerInstance
)
public function GetConnectionManagerInstance (
    connectionManagerInstance : String
) : ConnectionManagerBase

Parameters

  • connectionManagerInstance
    [in] Connection type.

Return Value

ConnectionManagerBase object.

Exceptions

Exception type Condition
SmsConnectionException

There was a failure in creating the object. An error has already been shown.

Remarks

If the connection manager instance has not yet been initialized and connected, this method calls initialize and connection methods as configured for the ConnectionManagerBase object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

SmsSiteConnectionNode Class
SmsSiteConnectionNode Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
ConnectionManagerBase