## String::Is method


检查字符串对象是否为传入的 [TypeInfo](../../typeinfo/) 指定的类型。

```cpp
bool System::String::Is(const System::TypeInfo &target) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| target | const System::TypeInfo\& | [TypeInfo](../../typeinfo/) 用于对照检查。 |

### ReturnValue

如果目标是 [String](../) 类的 [TypeInfo](../../typeinfo/)，则为 true，否则为 false。

## 另见

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