CorAttributeTargets – výčet
Určuje prvky aplikace, pro které je platné použít atribut.
Syntax
typedef enum CorAttributeTargets
{
catAssembly = 0x0001,
catModule = 0x0002,
catClass = 0x0004,
catStruct = 0x0008,
catEnum = 0x0010,
catConstructor = 0x0020,
catMethod = 0x0040,
catProperty = 0x0080,
catField = 0x0100,
catEvent = 0x0200,
catInterface = 0x0400,
catParameter = 0x0800,
catDelegate = 0x1000,
catGenericParameter = 0x4000,
catAll =
catAssembly | catModule | catClass | catStruct |
catEnum | catConstructor | catMethod | catProperty |
catField | catEvent | catInterface | catParameter |
catDelegate | catGenericParameter,
catClassMembers =
catClass | catStruct | catEnum | catConstructor |
catMethod | catProperty | catField | catEvent |
catDelegate | catInterface
} CorAttributeTargets;
Členové
Člen | Description |
---|---|
catAssembly |
Atribut lze použít na sestavení. |
catModule |
Atribut lze použít u přenosného spustitelného souboru (.dll nebo .exe) modulu. |
catClass |
Atribut lze použít na třídu. |
catStruct |
Atribut lze použít na strukturu; to znamená typ hodnoty. |
catEnum |
Atribut lze použít ve výčtu. |
catConstructor |
Atribut lze použít na konstruktor. |
catMethod |
Atribut lze použít na metodu. |
catProperty |
Atribut lze použít na vlastnost. |
catField |
Atribut lze použít u pole. |
catEvent |
Atribut lze použít na událost. |
catInterface |
Atribut lze použít pro rozhraní. |
catParameter |
Atribut lze použít u parametru. |
catDelegate |
Atribut lze použít na delegáta. |
catGenericParameter |
Atribut lze použít na obecný parametr. |
catAll |
Atribut lze použít u libovolného elementu aplikace. |
catClassMembers |
Atribut lze použít u člena třídy. |
Poznámky
Hodnoty CorAttributeTargets
výčtu lze kombinovat s bitovou operací OR, aby se získala upřednostňovaná kombinace.
Paralelně CorAttributeTargets
se spravovaný System.AttributeTargets výčet.
Požadavky
Platformy: Viz Požadavky na systém.
Záhlaví: CorHdr.h
Verze rozhraní .NET Framework: K dispozici od verze 1.0
Viz také
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.