Gets the connection manager instance for the requested connection
type.
Namespace:
Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in
microsoft.configurationmanagement.dll)
Usage
Visual Basic |
Dim instance As SmsSiteConnectionNode
Dim connectionManagerInstance As String
Dim returnValue As ConnectionManagerBase
returnValue = instance.GetConnectionManagerInstance(connectionManagerInstance)
|
Syntax
Visual Basic |
<PermissionSetAttribute(SecurityAction.LinkDemand, Name:="FullTrust")> _
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name:="FullTrust")> _
Public Function GetConnectionManagerInstance ( _
connectionManagerInstance As String _
) As ConnectionManagerBase
|
C# |
[PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")]
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust")]
public ConnectionManagerBase GetConnectionManagerInstance (
string connectionManagerInstance
)
|
C++ |
[PermissionSetAttribute(SecurityAction::LinkDemand, Name=L"FullTrust")]
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name=L"FullTrust")]
public:
ConnectionManagerBase^ GetConnectionManagerInstance (
String^ connectionManagerInstance
)
|
J# |
/** @attribute PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust") */
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust") */
public ConnectionManagerBase GetConnectionManagerInstance (
String connectionManagerInstance
)
|
JScript |
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
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