الفئة System::Net::Http::Headers::NameValueHeaderValue

NameValueHeaderValue class

تمثّل زوج مفتاح/قيمة للاستخدام في الرؤوس. يجب إنشاء كائنات هذه الفئة فقط باستخدام الدالة System::MakeObject(). لا تقم أبداً بإنشاء نسخة من هذا النوع على المكدس أو باستخدام المشغّل new، لأن ذلك سيتسبب في أخطاء وقت التشغيل أو أعطال التأكيد. احرص دائماً على تغليف هذه الفئة في مؤشر System::SmartPtr واستخدام هذا المؤشر لتمريره إلى الدوال كمعامل.

class NameValueHeaderValue : public virtual System::ICloneable

الطرق

طريقةالوصف
Equals(System::SharedPtr<Object>) overrideيقارن الكائنات باستخدام دلالات Object.Equals في C#.
static Find(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, String)يبحث عن نسخة الفئة NameValueHeaderValue-class في مجموعة حسب الاسم المحدد.
get_Name()يرجع اسم النسخة الحالية.
get_Value()يحصل على قيمة النسخة الحالية.
GetHashCode() const overrideنظير طريقة C# Object.GetHashCode(). يتيح تجزئة الكائنات المخصصة.
static GetHashCode(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>)يعيد رمز تجزئة لجميع عناصر المجموعة.
static GetNameValueLength(String, int32_t, System::SharedPtr<NameValueHeaderValue>&)يحوّل سلسلة مُمرَّرة من الفهرس المحدد إلى نسخة من الفئة NameValueHeaderValue.
static GetNameValueLength(String, int32_t, HeaderFunc<System::SharedPtr<NameValueHeaderValue>>, System::SharedPtr<NameValueHeaderValue>&)يحوّل سلسلة مُمرَّرة من الفهرس المحدد إلى نسخة من الفئة NameValueHeaderValue.
static GetNameValueListLength(String, int32_t, char16_t, System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>)يحوّل سلسلة مُمرَّرة من الفهرس المحدد إلى مجموعة من مثيلات NameValueHeaderValue-class ويعيد طول الجزء الفرعي المُحلَّل.
static GetValueLength(String, int32_t)يعيد طول القيمة من الفهرس المحدد.
NameValueHeaderValue()ينشئ نسخة جديدة.
NameValueHeaderValue(String)ينشئ نسخة جديدة.
NameValueHeaderValue(String, String)ينشئ نسخة جديدة.
static Parse(String)يحوّل سلسلة مُمرَّرة إلى نسخة من الفئة NameValueHeaderValue.
set_Value(String)يضبط قيمة النسخة الحالية.
ToString() const overrideنظير طريقة C# Object.ToString(). يتيح تحويل الكائنات المخصصة إلى سلسلة.
static ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, char16_t, bool, System::SharedPtr<Text::StringBuilder>)يعيد تمثيلًا نصيًا لمجموعة مثيلات NameValueHeaderValue-class.
static ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, char16_t, bool)يعيد تمثيلًا نصيًا لمجموعة مثيلات NameValueHeaderValue-class.
static TryParse(String, System::SharedPtr<NameValueHeaderValue>&)يحاول تحويل سلسلة مُمرَّرة إلى نسخة من الفئة NameValueHeaderValue.

انظر أيضًا