Encodes a network abstraction layer (NAL) value. This method is similar to PackNALPath Method in Class SMS_NAL_Methods. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim connectionManager As ConnectionManagerBase
Dim displayQualifiers As String()
Dim nalType As String
Dim networkOSPath As String
Dim networkConnectionQualifiers As String()
Dim returnValue As String

returnValue = ResultObjectHelpers.EncodeNalValue(connectionManager, displayQualifiers, nalType, networkOSPath, networkConnectionQualifiers)

Syntax

Visual Basic
Public Shared Function EncodeNalValue ( _
		connectionManager As ConnectionManagerBase, _
		displayQualifiers As String(), _
		nalType As String, _
		networkOSPath As String, _
		networkConnectionQualifiers As String() _
) As String
C#
public static string EncodeNalValue (
		ConnectionManagerBase connectionManager,
		string[] displayQualifiers,
		string nalType,
		string networkOSPath,
		string[] networkConnectionQualifiers
)
C++
public:
static String^ EncodeNalValue (
		ConnectionManagerBase^ connectionManager, 
		array<String^>^ displayQualifiers, 
		String^ nalType, 
		String^ networkOSPath, 
		array<String^>^ networkConnectionQualifiers
)
J#
public static String EncodeNalValue (
		ConnectionManagerBase connectionManager, 
		String[] displayQualifiers, 
		String nalType, 
		String networkOSPath, 
		String[] networkConnectionQualifiers
)
JScript
public static function EncodeNalValue (
		connectionManager : ConnectionManagerBase, 
		displayQualifiers : String[], 
		nalType : String, 
		networkOSPath : String, 
		networkConnectionQualifiers : String[]
) : String

Parameters

connectionManager

[in] ConnectionManagerBase object.

displayQualifiers

[in] Array of display qualifiers that are used by the Configuration Manager console. See the DisplayQualifiers property of PackNALPath Method in Class SMS_NAL_Methods.

nalType

[in] The NAL type that is specified by the network operating system. See the NALType property of PackNALPath Method in Class SMS_NAL_Methods.

networkOSPath

[in] Network operating system path. See the NetworkOSPath property of PackNALPath Method in Class SMS_NAL_Methods.

networkConnectionQualifiers

[in] Array of network connection qualifiers. See the NetworkConnectionQualifiers property of PackNALPath Method in Class SMS_NAL_Methods.

Return Value

Encoded NAL value.

Remarks

Exception type

Condition

ArgumentNullException

The connectionManager parameter cannot be null.

ArgumentException

The networkOSPath parameter cannot be null or an empty string.

ArgumentOutOfRangeException

The NAL value could not be encoded.


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