## IdnMapping class


[IdnMapping](./) used to map names to Punycode. Objects of this class should only be allocated using [System::MakeObject()](../../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
class IdnMapping : public System::Object
```

## 方法

| 方法 | 描述 |
| --- | --- |
| [Equals](./equals/)(SharedPtr\<Object\>) override | 比较两个 [IdnMapping](./) 对象。 |
| [get_AllowUnassigned](./get_allowunassigned/)() const | 获取指示操作中是否使用未分配代码点的标志。 |
| [get_UseStd3AsciiRules](./get_usestd3asciirules/)() const | 获取指示操作中是否使用标准命名约定的标志。 |
| [GetAscii](./getascii/)(const String\&) const | [Convert](../../system/convert/) 将 Unicode 域名转换为等效的 ASCII。 |
| [GetAscii](./getascii/)(const String\&, int) const | [Convert](../../system/convert/) 将 Unicode 域名转换为等效的 ASCII。 |
| [GetAscii](./getascii/)(const String\&, int, int) const | [Convert](../../system/convert/) 将 Unicode 域名转换为等效的 ASCII。 |
| [GetHashCode](./gethashcode/)() const override | 获取当前 [IdnMapping](./) 对象的哈希码。 |
| [GetUnicode](./getunicode/)(const String\&) const | [Convert](../../system/convert/) 将 ASCII 域名转换为等效的 Unicode。 |
| [GetUnicode](./getunicode/)(const String\&, int) const | [Convert](../../system/convert/) 将 ASCII 域名转换为等效的 Unicode。 |
| [GetUnicode](./getunicode/)(const String\&, int, int) const | [Convert](../../system/convert/) 将 ASCII 域名转换为等效的 Unicode。 |
| [IdnMapping](./idnmapping/)() | RTTI 信息。 |
| [IdnMapping](./idnmapping/)(const IdnMapping\&) |  |
| [operator=](./operator=/)(const IdnMapping\&) |  |
| [set_AllowUnassigned](./set_allowunassigned/)(bool) | 设置标志，指示在操作中是否使用未分配的代码点。 |
| [set_UseStd3AsciiRules](./set_usestd3asciirules/)(bool) | 设置标志，指示在操作中是否使用标准命名约定。 |
## 另见

* Class [Object](../../system/object/)
* Namespace [System::Globalization](../)
* Library [Aspose.Page for C++](../../)
