Connects to the server. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

Visual Basic
Dim instance As SmsRootConsoleNode
Dim serverName As String
Dim siteCode As String
Dim siteName As String
Dim nodesToHide As String

instance.ConnectToServer(serverName, siteCode, siteName, nodesToHide)

Syntax

Visual Basic
Public Sub ConnectToServer ( _
		serverName As String, _
		siteCode As String, _
		siteName As String, _
		nodesToHide As String _
)
C#
public void ConnectToServer (
		string serverName,
		string siteCode,
		string siteName,
		string nodesToHide
)
C++
public:
void ConnectToServer (
		String^ serverName, 
		String^ siteCode, 
		String^ siteName, 
		String^ nodesToHide
)
J#
public void ConnectToServer (
		String serverName, 
		String siteCode, 
		String siteName, 
		String nodesToHide
)
JScript
public function ConnectToServer (
		serverName : String, 
		siteCode : String, 
		siteName : String, 
		nodesToHide : String
)

Parameters

serverName

[in] Name of the server.

siteCode

[in] Site code of the server site.

siteName

[in] Name of the site.

nodesToHide

[in] Nodes to hide.

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