Gets the computer name for the site system server. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim displayText As String
Dim returnValue As String

returnValue = ResultObjectHelpers.GetSiteSystemServerMachineName(displayText)

Syntax

Visual Basic
Public Shared Function GetSiteSystemServerMachineName ( _
		displayText As String _
) As String
C#
public static string GetSiteSystemServerMachineName (
		string displayText
)
C++
public:
static String^ GetSiteSystemServerMachineName (
		String^ displayText
)
J#
public static String GetSiteSystemServerMachineName (
		String displayText
)
JScript
public static function GetSiteSystemServerMachineName (
		displayText : String
) : String

Parameters

displayText

[in] Display text for the server.

Return Value

Computer name string.

Remarks

Exception type

Condition

ArgumentException

The displayText parameter cannot be null or an empty string

ArgumentOutOfRangeException

The server name was not found.


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