ResultObjectHelpers.GetSiteSystemServerMachineName Method

Gets the computer name for the site system server.

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

Usage

'Usage
Dim displayText As String
Dim returnValue As String

returnValue = ResultObjectHelpers.GetSiteSystemServerMachineName(displayText)

Syntax

'Declaration
Public Shared Function GetSiteSystemServerMachineName ( _
    displayText As String _
) As String
public static string GetSiteSystemServerMachineName (
    string displayText
)
public:
static String^ GetSiteSystemServerMachineName (
    String^ displayText
)
public static String GetSiteSystemServerMachineName (
    String displayText
)
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

Reference

ResultObjectHelpers Class
ResultObjectHelpers Members
Microsoft.ConfigurationManagement.AdminConsole Namespace