ConnectionManagerBase.Connect Method (String)
Connects to the management provider by using the specified server path.
Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)
Usage
'Usage
Dim instance As ConnectionManagerBase
Dim configMgrServerPath As String
Dim returnValue As Boolean
returnValue = instance.Connect(configMgrServerPath)
Syntax
'Declaration
Public MustOverride Function Connect ( _
configMgrServerPath As String _
) As Boolean
public abstract bool Connect (
string configMgrServerPath
)
public:
virtual bool Connect (
String^ configMgrServerPath
) abstract
public abstract boolean Connect (
String configMgrServerPath
)
public abstract function Connect (
configMgrServerPath : String
) : boolean
Parameters
- configMgrServerPath
[in] Path to the Configuration Manager server.
Return Value
true if the connection is successful; otherwise false.
Remarks
This method assumes that the current user credentials are appropriate for the connection. If the credentials do not allow the connection, the method returns false.
For information on using this method, see How to Connect to an SMS Provider in Configuration Manager by Using Managed Code.
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
ConnectionManagerBase Class
ConnectionManagerBase Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace
Other Resources
How to Connect to an SMS Provider in Configuration Manager by Using Managed Code