System::Attribute::GetCustomAttribute metod

Attribute::GetCustomAttribute method

Returnerar ett anpassat attribut av en angiven typ som tillämpas på den angivna typen.

static Object::ptr System::Attribute::GetCustomAttribute(const TypeInfo &type, const TypeInfo &attributeType)
ParameterTypBeskrivning
typconst TypeInfo&Typattribut som hämtas
attributeTypeconst TypeInfo&Typ av attributet som ska hämtas

ReturnValue

Ett hämtat attribut eller null om den angivna typen inte har ett attribut av den angivna typen.

Se även