Base PropertyEncode Method
This method is used to encode a value for output to a PDI data stream
Definition
Namespace: EWSoftware.PDI.Properties
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The encoded data
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public virtual string? Encode(
string? data
)VB
Public Overridable Function Encode (
data As String
) As StringC++
public:
virtual String^ Encode(
String^ data
)F#
abstract Encode :
data : string -> string
override Encode :
data : string -> string Parameters
- data String
- The data string to encode
Return Value
StringThe encoded data
Remarks
By default, it can handle Base 64 and Quoted-Printable encoding. For 7-bit and 8-bit encoding, it will escape characters as needed. The method used depends on the current setting of the Encoding property. It can be overridden to support other types of encoding.
For vCard 2.1 and vCalendar 1.0 properties, if a CharacterSet parameter has been specified, the value is converted from the one specified by the DefaultEncoding property to the one specified by the CharacterSet property before encoding it.