GetCustomAttribute()

Attribute::GetCustomAttribute(const TypeInfo&, const TypeInfo&) method

Returns a custom attribute of a specified type appllied to specified type.

static Object::ptr System::Attribute::GetCustomAttribute(const TypeInfo &type, const TypeInfo &attributeType)

Arguments

ParameterTypeDescription
typeconst TypeInfo&Type attribute of which is retrieved
attributeTypeconst TypeInfo&Type of the attribute to retrieve

Return Value

A retrieved attribute or null if specified type does not have attribute of specified type.

See Also