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

Visual Basic
Dim instance As ConnectionManagerBase
Dim configMgrServerPath As String
Dim returnValue As Boolean

returnValue = instance.Connect(configMgrServerPath)

Syntax

Visual Basic
Public MustOverride Function Connect ( _
		configMgrServerPath As String _
) As Boolean
C#
public abstract bool Connect (
		string configMgrServerPath
)
C++
public:
virtual bool Connect (
		String^ configMgrServerPath
) abstract
J#
public abstract boolean Connect (
		String configMgrServerPath
)
JScript
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