Set the primitive value of this data object from a string.

Namespace: CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Sub SetStringValue( _ 
ByVal aEncoding As Encoding, _ 
ByVal sValue As String
)
This language is not supported or no code example is available.
public void SetStringValue( 
Encoding aEncoding
string sValue 
)
This language is not supported or no code example is available.
public:  
void SetStringValue( 
Encoding^ aEncoding
String^ sValue 
)
This language is not supported or no code example is available.
public function SetStringValue( 
aEncoding : Encoding
sValue : String 
);
This language is not supported or no code example is available.

Parameters

aEncoding
Type: Encoding

The text encoding that shall be used in order to convert the given string into a binary representation. This must not be null.

sValue
Type: string

The string value to set. This may be null. If this parameter is null, then the Value will be set to null, too.

Exception type Condition

ArgumentNullException

Thrown when one or more required arguments are null.

InvalidOperationException

Thrown when the requested operation is invalid.

Marc, 9/29/2022.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0