Partilhar via


SmsRootConsoleNode.ConnectToServer Method

Connects to the server.

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

Usage

'Usage
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

'Declaration
Public Sub ConnectToServer ( _
    serverName As String, _
    siteCode As String, _
    siteName As String, _
    nodesToHide As String _
)
public void ConnectToServer (
    string serverName,
    string siteCode,
    string siteName,
    string nodesToHide
)
public:
void ConnectToServer (
    String^ serverName, 
    String^ siteCode, 
    String^ siteName, 
    String^ nodesToHide
)
public void ConnectToServer (
    String serverName, 
    String siteCode, 
    String siteName, 
    String nodesToHide
)
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

Reference

SmsRootConsoleNode Class
SmsRootConsoleNode Members
Microsoft.ConfigurationManagement.AdminConsole Namespace