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

Visual Basic
Dim displayText As String
Dim isShare As Boolean
Dim returnValue As String

returnValue = ResultObjectHelpers.GetSiteSystemServerName(displayText, isShare)

Syntax

Visual Basic
Public Shared Function GetSiteSystemServerName ( _
		displayText As String, _
		isShare As Boolean _
) As String
C#
public static string GetSiteSystemServerName (
		string displayText,
		bool isShare
)
C++
public:
static String^ GetSiteSystemServerName (
		String^ displayText, 
		bool isShare
)
J#
public static String GetSiteSystemServerName (
		String displayText, 
		boolean isShare
)
JScript
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