System::Attribute::GetCustomAttribute method

Attribute::GetCustomAttribute method

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

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

ReturnValue

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

انظر أيضًا