System::Attribute::GetCustomAttribute-metoden

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)
ParameterTypeBeskrivning
typconst TypeInfo&Typens attribut som hämtas
attributeTypeconst TypeInfo&Typ av attribut att hämta

ReturnValue

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

Se även