## XmlWriter::WriteAttributeString(const String\&, const String\&, const String\&) method


当在派生类中被重写时，写入具有指定本地名称、命名空间 URI 和数值的属性。

```cpp
void System::Xml::XmlWriter::WriteAttributeString(const String &localName, const String &ns, const String &value)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| localName | const String\& | 属性的本地名称。 |
| ns | const String\& | 要与属性关联的命名空间 URI。 |
| value | const String\& | 属性的值。 |

## 另见

* Class [String](../../../system/string/)
* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
## XmlWriter::WriteAttributeString(const String\&, const String\&) method


当在派生类中被重写时，写出具有指定本地名称和数值的属性。

```cpp
void System::Xml::XmlWriter::WriteAttributeString(const String &localName, const String &value)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| localName | const String\& | 属性的本地名称。 |
| value | const String\& | 属性的值。 |

## 另见

* Class [String](../../../system/string/)
* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
## XmlWriter::WriteAttributeString(const String\&, const String\&, const String\&, const String\&) method


当在派生类中被重写时，写出具有指定前缀、本地名称、命名空间 URI 和数值的属性。

```cpp
void System::Xml::XmlWriter::WriteAttributeString(const String &prefix, const String &localName, const String &ns, const String &value)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| prefix | const String\& | 属性的命名空间前缀。 |
| localName | const String\& | 属性的本地名称。 |
| ns | const String\& | 属性的命名空间 URI。 |
| value | const String\& | 属性的值。 |

## 另见

* Class [String](../../../system/string/)
* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
