Metodo System::Attribute::GetCustomAttribute

Attribute::GetCustomAttribute method

Restituisce un attributo personalizzato di un tipo specificato applicato al tipo specificato.

static Object::ptr System::Attribute::GetCustomAttribute(const TypeInfo &type, const TypeInfo &attributeType)
ParametroTipoDescrizione
tipoconst TypeInfo&Tipo di attributo che viene recuperato
attributeTypeconst TypeInfo&Tipo dell’attributo da recuperare

ReturnValue

Un attributo recuperato o null se il tipo specificato non possiede un attributo del tipo specificato.

Vedi anche