System::Attribute::GetCustomAttribute メソッド

Attribute::GetCustomAttribute method

指定された型に適用された、指定されたタイプのカスタム属性を返します。

static Object::ptr System::Attribute::GetCustomAttribute(const TypeInfo &type, const TypeInfo &attributeType)
パラメーター説明
const TypeInfo&取得対象の型属性
attributeTypeconst TypeInfo&取得する属性のタイプ

ReturnValue

取得された属性、または指定されたタイプがその属性を持っていない場合は null

参照