C# Encoding IsMailNewsDisplay
Description
Encoding IsMailNewsDisplay
When overridden in a derived
class, gets a value indicating whether the current encoding can be used by
mail and news clients for displaying content.
Syntax
Encoding.IsMailNewsDisplay
has the following syntax.
public virtual bool IsMailNewsDisplay { get; }
Example
using System;/*from ww w . j a v a 2s . c om*/
using System.Text;
public class SamplesEncoding {
public static void Main() {
foreach( EncodingInfo ei in Encoding.GetEncodings() ) {
Encoding e = ei.GetEncoding();
Console.WriteLine(ei.Name );
Console.WriteLine(e.IsMailNewsDisplay );
}
}
}
The code above generates the following result.