## CompareInfo::IsPrefix(const String\&, const String\&) const method


Vérifie si la chaîne spécifiée commence par le préfixe spécifié.

```cpp
virtual bool System::Globalization::CompareInfo::IsPrefix(const String &source, const String &prefix) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| source | const String\& | Chaîne source. |
| préfixe | const String\& | Chaîne de préfixe. |

### ReturnValue

Vrai si la chaîne commence par le préfixe ; sinon faux.

## Voir aussi

* Class [String](../../../system/string/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
## CompareInfo::IsPrefix(const String\&, const String\&, CompareOptions) const method


Vérifie si la chaîne spécifiée commence par le préfixe spécifié en utilisant les options de comparaison spécifiées.

```cpp
virtual bool System::Globalization::CompareInfo::IsPrefix(const String &source, const String &prefix, CompareOptions options) const
```


| Paramètre | Type | Description |
| --- | --- | --- |
| source | const String\& | Chaîne source. |
| préfixe | const String\& | Chaîne de préfixe. |
| options | CompareOptions | Comparer les options. |

### ReturnValue

Vrai si la chaîne commence par le préfixe ; sinon faux.

## Voir aussi

* Class [String](../../../system/string/)
* Enum [CompareOptions](../../compareoptions/)
* Class [CompareInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.Page for C++](../../../)
