class IdnMapping
in global :: System . Globalization
Supports the use of non-ASCII characters for Internet domain names. This class cannot be inherited.
public bool AllowUnassigned { get; set; }
Gets or sets a value that indicates whether unassigned Unicode code points are used in operations performed by members of the current object.
- Returns if unassigned code points are used in operations; otherwise, .
public bool Equals( object obj )
Indicates whether a specified object and the current object are equal.
objThe object to compare to the current object.- Returns if the object specified by the parameter is derived from and its and properties are equal; otherwise, .
public string GetAscii( string unicode )
Encodes a string of domain name labels that consist of Unicode characters to a string of displayable Unicode characters in the US-ASCII character range. The string is formatted according to the IDNA standard.
unicodeThe string to convert, which consists of one or more domain name labels delimited with label separators.- Returns The equivalent of the string specified by the parameter, consisting of displayable Unicode characters in the US-ASCII character range (U+0020 to U+007E) and formatted according to the IDNA standard.
public string GetAscii( string unicode, int index )
Encodes a substring of domain name labels that include Unicode characters outside the US-ASCII character range. The substring is converted to a string of displayable Unicode characters in the US-ASCII character range and is formatted according to the IDNA standard.
unicodeThe string to convert, which consists of one or more domain name labels delimited with label separators.indexA zero-based offset into that specifies the start of the substring to convert. The conversion operation continues to the end of the string.- Returns The equivalent of the substring specified by the and parameters, consisting of displayable Unicode characters in the US-ASCII character range (U+0020 to U+007E) and formatted according to the IDNA standard.
public string GetAscii( string unicode, int index, int count )
Encodes the specified number of characters in a substring of domain name labels that include Unicode characters outside the US-ASCII character range. The substring is converted to a string of displayable Unicode characters in the US-ASCII character range and is formatted according to the IDNA standard.
unicodeThe string to convert, which consists of one or more domain name labels delimited with label separators.indexA zero-based offset into that specifies the start of the substring.countThe number of characters to convert in the substring that starts at the position specified by in the string.- Returns The equivalent of the substring specified by the , , and parameters, consisting of displayable Unicode characters in the US-ASCII character range (U+0020 to U+007E) and formatted according to the IDNA standard.
public string GetUnicode( string ascii )
Decodes a string of one or more domain name labels, encoded according to the IDNA standard, to a string of Unicode characters.
asciiThe string to decode, which consists of one or more labels in the US-ASCII character range (U+0020 to U+007E) encoded according to the IDNA standard.- Returns The Unicode equivalent of the IDNA substring specified by the parameter.
public string GetUnicode( string ascii, int index )
Decodes a substring of one or more domain name labels, encoded according to the IDNA standard, to a string of Unicode characters.
asciiThe string to decode, which consists of one or more labels in the US-ASCII character range (U+0020 to U+007E) encoded according to the IDNA standard.indexA zero-based offset into that specifies the start of the substring to decode. The decoding operation continues to the end of the string.- Returns The Unicode equivalent of the IDNA substring specified by the and parameters.
public string GetUnicode( string ascii, int index, int count )
Decodes a substring of a specified length that contains one or more domain name labels, encoded according to the IDNA standard, to a string of Unicode characters.
asciiThe string to decode, which consists of one or more labels in the US-ASCII character range (U+0020 to U+007E) encoded according to the IDNA standard.indexA zero-based offset into that specifies the start of the substring.countThe number of characters to convert in the substring that starts at the position specified by in the string.- Returns The Unicode equivalent of the IDNA substring specified by the , , and parameters.
public bool UseStd3AsciiRules { get; set; }
Gets or sets a value that indicates whether standard or relaxed naming conventions are used in operations performed by members of the current object.
- Returns if standard naming conventions are used in operations; otherwise, .
public int GetHashCode( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public IdnMapping( )
😔 No documentation found.