ResultObjectHelpers.GetSiteSystemServerName Method

Gets the server name from the network abstraction layer (NAL) path 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 isShare As Boolean
Dim returnValue As String

returnValue = ResultObjectHelpers.GetSiteSystemServerName(displayText, isShare)

Syntax

'Declaration
Public Shared Function GetSiteSystemServerName ( _
    displayText As String, _
    isShare As Boolean _
) As String
public static string GetSiteSystemServerName (
    string displayText,
    bool isShare
)
public:
static String^ GetSiteSystemServerName (
    String^ displayText, 
    bool isShare
)
public static String GetSiteSystemServerName (
    String displayText, 
    boolean isShare
)
public static function GetSiteSystemServerName (
    displayText : String, 
    isShare : boolean
) : String

Parameters

  • displayText
    [in] Display text for the server.
  • isShare
    [in] true if the server is using a distribution point share.

Return Value

Server 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