طريقة System::Attribute::GetCustomAttribute

Attribute::GetCustomAttribute method

يعيد سمة مخصصة من نوع محدد مطبقة على النوع المحدد.

static Object::ptr System::Attribute::GetCustomAttribute(const TypeInfo &type, const TypeInfo &attributeType)
معاملنوعالوصف
نوعconst TypeInfo&نوع السمة التي يتم استرجاعها
attributeTypeconst TypeInfo&نوع السمة المراد استرجاعها

ReturnValue

سمة مسترجعة أو null إذا كان النوع المحدد لا يحتوي على سمة من النوع المحدد.

انظر أيضًا