System::Attribute::GetCustomAttribute methode

Attribute::GetCustomAttribute method

Retourneert een aangepast attribuut van een opgegeven type dat is toegepast op het opgegeven type.

static Object::ptr System::Attribute::GetCustomAttribute(const TypeInfo &type, const TypeInfo &attributeType)
ParameterTypeBeschrijving
typeconst TypeInfo&Type‑attribuut waarvan opgehaald wordt
attributeTypeconst TypeInfo&Type van het attribuut dat opgehaald moet worden

ReturnValue

Een opgehaald attribuut of null als het opgegeven type geen attribuut van het opgegeven type heeft.

Zie ook