## String::StartsWith(const String\&) const method


يتحقق مما إذا كانت السلسلة تبدأ بالسلسلة الفرعية المحددة.

```cpp
bool System::String::StartsWith(const String &value) const
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| value | const String\& | سلسلة البحث. |

### ReturnValue

صحيح إذا كانت السلسلة تبدأ بالجزء الفرعي المحدد، خطأ خلاف ذلك.

## انظر أيضًا

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## String::StartsWith(const String\&, bool, const SharedPtr\<System::Globalization::CultureInfo\>\&) const method


يتحقق مما إذا كانت السلسلة تبدأ بالسلسلة الفرعية المحددة.

```cpp
bool System::String::StartsWith(const String &value, bool ignoreCase, const SharedPtr<System::Globalization::CultureInfo> &culture=nullptr) const
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| value | const String\& | سلسلة البحث. |
| ignoreCase | bool | يحدد ما إذا كان المقارنة غير حساسة لحالة الأحرف. |
| الثقافة | const SharedPtr\<System::Globalization::CultureInfo\>\& | الثقافة المستخدمة أثناء إجراء مقارنة السلسلة. |

### ReturnValue

صحيح إذا كانت السلسلة تبدأ بالجزء الفرعي المحدد، خطأ خلاف ذلك.

## انظر أيضًا

* Class [String](../)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## String::StartsWith(const String\&, System::StringComparison) const method


يتحقق مما إذا كانت السلسلة تبدأ بالسلسلة الفرعية المحددة.

```cpp
bool System::String::StartsWith(const String &value, System::StringComparison comparisonType) const
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| value | const String\& | سلسلة البحث. |
| comparisonType | System::StringComparison | وضع [Comparison](../../comparison/) ، راجع [System::StringComparison](../../stringcomparison/) للحصول على التفاصيل. |

### ReturnValue

صحيح إذا كانت السلسلة تبدأ بالجزء الفرعي المحدد، خطأ خلاف ذلك.

## انظر أيضًا

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