System::Attribute::GetCustomAttribute method

Attribute::GetCustomAttribute 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)
ParameterTypeDescription
typeconst TypeInfo&Type attribute of which is retrieved
attributeTypeconst TypeInfo&Type of the attribute to retrieve

ReturnValue

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

See Also