## String::operator=(const String\&) method


赋值运算符。

```cpp
String & System::String::operator=(const String &str)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| str | const String\& | [String](../) 用于复制。 |

### ReturnValue

自身引用。

## 另见

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## String::operator=(String\&&) method


移动赋值运算符。

```cpp
String & System::String::operator=(String &&str) noexcept
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| str | String\&& | [String](../) 用于移动数据。 |

### ReturnValue

自身引用。

## 另见

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
