|
2 | 2 | title: "FIELD_MODIFIERS | Microsoft Docs"
|
3 | 3 | ms.date: "11/04/2016"
|
4 | 4 | ms.topic: "conceptual"
|
5 |
| -f1_keywords: |
| 5 | +f1_keywords: |
6 | 6 | - "FIELD_MODIFIERS"
|
7 |
| -helpviewer_keywords: |
| 7 | +helpviewer_keywords: |
8 | 8 | - "FIELD_MODIFIERS enumeration"
|
9 | 9 | ms.assetid: 1e44681c-1f03-41a9-9c04-b79f231b0822
|
10 | 10 | author: "gregvanl"
|
11 | 11 | ms.author: "gregvanl"
|
12 | 12 | manager: jillfra
|
13 |
| -ms.workload: |
| 13 | +ms.workload: |
14 | 14 | - "vssdk"
|
15 | 15 | ---
|
16 | 16 | # FIELD_MODIFIERS
|
17 |
| -Specifies modifiers for a field type. |
18 |
| - |
19 |
| -## Syntax |
20 |
| - |
21 |
| -```cpp |
22 |
| -enum enum_FIELD_MODIFIERS { |
23 |
| - FIELD_MOD_NONE = 0x00000000, |
24 |
| - |
25 |
| - // Modifier of the field |
26 |
| - FIELD_MOD_ACCESS_NONE = 0x00000001, |
27 |
| - FIELD_MOD_ACCESS_PUBLIC = 0x00000002, |
28 |
| - FIELD_MOD_ACCESS_PROTECTED = 0x00000004, |
29 |
| - FIELD_MOD_ACCESS_PRIVATE = 0x00000008, |
30 |
| - |
31 |
| - // Storage modifier of the field |
32 |
| - FIELD_MOD_NOMODIFIERS = 0x00000010, |
33 |
| - FIELD_MOD_STATIC = 0x00000020, |
34 |
| - FIELD_MOD_CONSTANT = 0x00000040, |
35 |
| - FIELD_MOD_TRANSIENT = 0x00000080, |
36 |
| - FIELD_MOD_VOLATILE = 0x00000100, |
37 |
| - FIELD_MOD_ABSTRACT = 0x00000200, |
38 |
| - FIELD_MOD_NATIVE = 0x00000400, |
39 |
| - FIELD_MOD_SYNCHRONIZED = 0x00000800, |
40 |
| - FIELD_MOD_VIRTUAL = 0x00001000, |
41 |
| - FIELD_MOD_INTERFACE = 0x00002000, |
42 |
| - FIELD_MOD_FINAL = 0x00004000, |
43 |
| - FIELD_MOD_SENTINEL = 0x00008000, |
44 |
| - FIELD_MOD_INNERCLASS = 0x00010000, |
45 |
| - FIELD_TYPE_OPTIONAL = 0x00020000, |
46 |
| - FIELD_MOD_BYREF = 0x00040000, |
47 |
| - FIELD_MOD_HIDDEN = 0x00080000, |
48 |
| - FIELD_MOD_MARSHALASOBJECT = 0x00100000, |
49 |
| - FIELD_MOD_SPECIAL_NAME = 0x00200000, |
50 |
| - FIELD_MOD_HIDEBYSIG = 0x00400000, |
51 |
| - |
52 |
| - FIELD_MOD_WRITEONLY = 0x80000000, |
53 |
| - FIELD_MOD_ACCESS_MASK = 0x000000ff, |
54 |
| - FIELD_MOD_MASK = 0xffffff00, |
55 |
| - FIELD_MOD_ALL = 0x7fffffff |
56 |
| -}; |
57 |
| -typedef DWORD FIELD_MODIFIERS; |
58 |
| -``` |
59 |
| - |
60 |
| -```csharp |
61 |
| -public enum enum_FIELD_MODIFIERS { |
62 |
| - FIELD_MOD_NONE = 0x00000000, |
63 |
| - |
64 |
| - // Modifier of the field |
65 |
| - FIELD_MOD_ACCESS_NONE = 0x00000001, |
66 |
| - FIELD_MOD_ACCESS_PUBLIC = 0x00000002, |
67 |
| - FIELD_MOD_ACCESS_PROTECTED = 0x00000004, |
68 |
| - FIELD_MOD_ACCESS_PRIVATE = 0x00000008, |
69 |
| - |
70 |
| - // Storage modifier of the field |
71 |
| - FIELD_MOD_NOMODIFIERS = 0x00000010, |
72 |
| - FIELD_MOD_STATIC = 0x00000020, |
73 |
| - FIELD_MOD_CONSTANT = 0x00000040, |
74 |
| - FIELD_MOD_TRANSIENT = 0x00000080, |
75 |
| - FIELD_MOD_VOLATILE = 0x00000100, |
76 |
| - FIELD_MOD_ABSTRACT = 0x00000200, |
77 |
| - FIELD_MOD_NATIVE = 0x00000400, |
78 |
| - FIELD_MOD_SYNCHRONIZED = 0x00000800, |
79 |
| - FIELD_MOD_VIRTUAL = 0x00001000, |
80 |
| - FIELD_MOD_INTERFACE = 0x00002000, |
81 |
| - FIELD_MOD_FINAL = 0x00004000, |
82 |
| - FIELD_MOD_SENTINEL = 0x00008000, |
83 |
| - FIELD_MOD_INNERCLASS = 0x00010000, |
84 |
| - FIELD_TYPE_OPTIONAL = 0x00020000, |
85 |
| - FIELD_MOD_BYREF = 0x00040000, |
86 |
| - FIELD_MOD_HIDDEN = 0x00080000, |
87 |
| - FIELD_MOD_MARSHALASOBJECT = 0x00100000, |
88 |
| - FIELD_MOD_SPECIAL_NAME = 0x00200000, |
89 |
| - FIELD_MOD_HIDEBYSIG = 0x00400000, |
90 |
| - |
91 |
| - FIELD_MOD_WRITEONLY = 0x80000000, |
92 |
| - FIELD_MOD_ACCESS_MASK = 0x000000ff, |
93 |
| - FIELD_MOD_MASK = 0xffffff00, |
94 |
| - FIELD_MOD_ALL = 0x7fffffff |
95 |
| -}; |
96 |
| -``` |
97 |
| - |
98 |
| -## Members |
99 |
| - FIELD_MOD_ACCESS_TYPE |
100 |
| - Indicates that the field cannot be accessed. |
101 |
| - |
102 |
| - FIELD_MOD_ACCESS_PUBLIC |
103 |
| - Indicates that the field has public access. |
104 |
| - |
105 |
| - FIELD_MOD_ACCESS_PROTECTED |
106 |
| - Indicates that the field has protected access. |
107 |
| - |
108 |
| - FIELD_MOD_ACCESS_PRIVATE |
109 |
| - Indicates that the field has private access. |
110 |
| - |
111 |
| - FIELD_MOD_NOMODIFIERS |
112 |
| - Indicates that the field has no modifiers. |
113 |
| - |
114 |
| - FIELD_MOD_STATIC |
115 |
| - Indicates that the field is static. |
116 |
| - |
117 |
| - FIELD_MOD_CONSTANT |
118 |
| - Indicates that the field is a constant. |
119 |
| - |
120 |
| - FIELD_MOD_TRANSIENT |
121 |
| - Indicates that the field is transient. |
122 |
| - |
123 |
| - FIELD_MOD_VOLATILE |
124 |
| - Indicates that the field is volatile. |
125 |
| - |
126 |
| - FIELD_MOD_ABSTRACT |
127 |
| - Indicates that the field is abstract. |
128 |
| - |
129 |
| - FIELD_MOD_NATIVE |
130 |
| - Indicates that the field is native. |
131 |
| - |
132 |
| - FIELD_MOD_SYNCHRONIZED |
133 |
| - Indicates that the field is synchronized. |
134 |
| - |
135 |
| - FIELD_MOD_VIRTUAL |
136 |
| - Indicates that the field is virtual. |
137 |
| - |
138 |
| - FIELD_MOD_INTERFACE |
139 |
| - Indicates that the field is an interface. |
140 |
| - |
141 |
| - FIELD_MOD_FINAL |
142 |
| - Indicates that the field is final. |
143 |
| - |
144 |
| - FIELD_MOD_SENTINEL |
145 |
| - Indicates that the field is a sentinel. |
146 |
| - |
147 |
| - FIELD_MOD_INNERCLASS |
148 |
| - Indicates that the field is an inner class. |
149 |
| - |
150 |
| - FIELD_TYPE_OPTIONAL |
151 |
| - Indicates that the field is optional. |
152 |
| - |
153 |
| - FIELD_MOD_BYREF |
154 |
| - Indicates that the field is a reference argument. This is specifically for method arguments. |
155 |
| - |
156 |
| - FIELD_MOD_HIDDEN |
157 |
| - Indicates that the field must be hidden or presented in another context; for example, [!INCLUDE[vbprvb](../../../code-quality/includes/vbprvb_md.md)] static locals. |
158 |
| - |
159 |
| - FIELD_MOD_MARSHALASOBJECT |
160 |
| - Indicates that the field represents an object with an `IUnknown` interface. |
161 |
| - |
162 |
| - FIELD_MOD_SPECIAL_NAME |
163 |
| - Indicates that the field has a special name, for example, `.ctor` for a constructor ([!INCLUDE[vbprvb](../../../code-quality/includes/vbprvb_md.md)] only). |
164 |
| - |
165 |
| - FIELD_MOD_HIDEBYSIG |
166 |
| - Indicates that the field has the `Overloads` keyword applied to it ([!INCLUDE[vbprvb](../../../code-quality/includes/vbprvb_md.md)] only). |
167 |
| - |
168 |
| - FIELD_MOD_WRITEONLY |
169 |
| - Indicates that the field is write-only. This value is not included in `FIELD_MOD_ALL`, as the only use of such write-only fields is for function evaluation. A user must explicitly ask for `FIELD_MOD_WRITEONLY` fields. |
170 |
| - |
171 |
| - FIELD_MOD_ACCESS_MASK |
172 |
| - Indicates a mask for field access. |
173 |
| - |
174 |
| - FIELD_MOD_MASK |
175 |
| - Indicates a mask for field modifiers. |
176 |
| - |
177 |
| -## Remarks |
178 |
| - Used for the `dwModifiers` member of the [FIELD_INFO](../../../extensibility/debugger/reference/field-info.md) structure. |
179 |
| - |
180 |
| - These values are also passed to the [EnumFields](../../../extensibility/debugger/reference/idebugcontainerfield-enumfields.md) method to filter for specific fields. |
181 |
| - |
182 |
| -## Requirements |
183 |
| - Header: sh.h |
184 |
| - |
185 |
| - Namespace: Microsoft.VisualStudio.Debugger.Interop |
186 |
| - |
187 |
| - Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
188 |
| - |
189 |
| -## See Also |
190 |
| - [Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
191 |
| - [FIELD_INFO](../../../extensibility/debugger/reference/field-info.md) |
192 |
| - [EnumFields](../../../extensibility/debugger/reference/idebugcontainerfield-enumfields.md) |
| 17 | +Specifies modifiers for a field type. |
| 18 | + |
| 19 | +## Syntax |
| 20 | + |
| 21 | +```cpp |
| 22 | +enum enum_FIELD_MODIFIERS { |
| 23 | + FIELD_MOD_NONE = 0x00000000, |
| 24 | + |
| 25 | + // Modifier of the field |
| 26 | + FIELD_MOD_ACCESS_NONE = 0x00000001, |
| 27 | + FIELD_MOD_ACCESS_PUBLIC = 0x00000002, |
| 28 | + FIELD_MOD_ACCESS_PROTECTED = 0x00000004, |
| 29 | + FIELD_MOD_ACCESS_PRIVATE = 0x00000008, |
| 30 | + |
| 31 | + // Storage modifier of the field |
| 32 | + FIELD_MOD_NOMODIFIERS = 0x00000010, |
| 33 | + FIELD_MOD_STATIC = 0x00000020, |
| 34 | + FIELD_MOD_CONSTANT = 0x00000040, |
| 35 | + FIELD_MOD_TRANSIENT = 0x00000080, |
| 36 | + FIELD_MOD_VOLATILE = 0x00000100, |
| 37 | + FIELD_MOD_ABSTRACT = 0x00000200, |
| 38 | + FIELD_MOD_NATIVE = 0x00000400, |
| 39 | + FIELD_MOD_SYNCHRONIZED = 0x00000800, |
| 40 | + FIELD_MOD_VIRTUAL = 0x00001000, |
| 41 | + FIELD_MOD_INTERFACE = 0x00002000, |
| 42 | + FIELD_MOD_FINAL = 0x00004000, |
| 43 | + FIELD_MOD_SENTINEL = 0x00008000, |
| 44 | + FIELD_MOD_INNERCLASS = 0x00010000, |
| 45 | + FIELD_TYPE_OPTIONAL = 0x00020000, |
| 46 | + FIELD_MOD_BYREF = 0x00040000, |
| 47 | + FIELD_MOD_HIDDEN = 0x00080000, |
| 48 | + FIELD_MOD_MARSHALASOBJECT = 0x00100000, |
| 49 | + FIELD_MOD_SPECIAL_NAME = 0x00200000, |
| 50 | + FIELD_MOD_HIDEBYSIG = 0x00400000, |
| 51 | + |
| 52 | + FIELD_MOD_WRITEONLY = 0x80000000, |
| 53 | + FIELD_MOD_ACCESS_MASK = 0x000000ff, |
| 54 | + FIELD_MOD_MASK = 0xffffff00, |
| 55 | + FIELD_MOD_ALL = 0x7fffffff |
| 56 | +}; |
| 57 | +typedef DWORD FIELD_MODIFIERS; |
| 58 | +``` |
| 59 | + |
| 60 | +```csharp |
| 61 | +public enum enum_FIELD_MODIFIERS { |
| 62 | + FIELD_MOD_NONE = 0x00000000, |
| 63 | + |
| 64 | + // Modifier of the field |
| 65 | + FIELD_MOD_ACCESS_NONE = 0x00000001, |
| 66 | + FIELD_MOD_ACCESS_PUBLIC = 0x00000002, |
| 67 | + FIELD_MOD_ACCESS_PROTECTED = 0x00000004, |
| 68 | + FIELD_MOD_ACCESS_PRIVATE = 0x00000008, |
| 69 | + |
| 70 | + // Storage modifier of the field |
| 71 | + FIELD_MOD_NOMODIFIERS = 0x00000010, |
| 72 | + FIELD_MOD_STATIC = 0x00000020, |
| 73 | + FIELD_MOD_CONSTANT = 0x00000040, |
| 74 | + FIELD_MOD_TRANSIENT = 0x00000080, |
| 75 | + FIELD_MOD_VOLATILE = 0x00000100, |
| 76 | + FIELD_MOD_ABSTRACT = 0x00000200, |
| 77 | + FIELD_MOD_NATIVE = 0x00000400, |
| 78 | + FIELD_MOD_SYNCHRONIZED = 0x00000800, |
| 79 | + FIELD_MOD_VIRTUAL = 0x00001000, |
| 80 | + FIELD_MOD_INTERFACE = 0x00002000, |
| 81 | + FIELD_MOD_FINAL = 0x00004000, |
| 82 | + FIELD_MOD_SENTINEL = 0x00008000, |
| 83 | + FIELD_MOD_INNERCLASS = 0x00010000, |
| 84 | + FIELD_TYPE_OPTIONAL = 0x00020000, |
| 85 | + FIELD_MOD_BYREF = 0x00040000, |
| 86 | + FIELD_MOD_HIDDEN = 0x00080000, |
| 87 | + FIELD_MOD_MARSHALASOBJECT = 0x00100000, |
| 88 | + FIELD_MOD_SPECIAL_NAME = 0x00200000, |
| 89 | + FIELD_MOD_HIDEBYSIG = 0x00400000, |
| 90 | + |
| 91 | + FIELD_MOD_WRITEONLY = 0x80000000, |
| 92 | + FIELD_MOD_ACCESS_MASK = 0x000000ff, |
| 93 | + FIELD_MOD_MASK = 0xffffff00, |
| 94 | + FIELD_MOD_ALL = 0x7fffffff |
| 95 | +}; |
| 96 | +``` |
| 97 | + |
| 98 | +## Members |
| 99 | +FIELD_MOD_ACCESS_TYPE |
| 100 | +Indicates that the field cannot be accessed. |
| 101 | + |
| 102 | +FIELD_MOD_ACCESS_PUBLIC |
| 103 | +Indicates that the field has public access. |
| 104 | + |
| 105 | +FIELD_MOD_ACCESS_PROTECTED |
| 106 | +Indicates that the field has protected access. |
| 107 | + |
| 108 | +FIELD_MOD_ACCESS_PRIVATE |
| 109 | +Indicates that the field has private access. |
| 110 | + |
| 111 | +FIELD_MOD_NOMODIFIERS |
| 112 | +Indicates that the field has no modifiers. |
| 113 | + |
| 114 | +FIELD_MOD_STATIC |
| 115 | +Indicates that the field is static. |
| 116 | + |
| 117 | +FIELD_MOD_CONSTANT |
| 118 | +Indicates that the field is a constant. |
| 119 | + |
| 120 | +FIELD_MOD_TRANSIENT |
| 121 | +Indicates that the field is transient. |
| 122 | + |
| 123 | +FIELD_MOD_VOLATILE |
| 124 | +Indicates that the field is volatile. |
| 125 | + |
| 126 | +FIELD_MOD_ABSTRACT |
| 127 | +Indicates that the field is abstract. |
| 128 | + |
| 129 | +FIELD_MOD_NATIVE |
| 130 | +Indicates that the field is native. |
| 131 | + |
| 132 | +FIELD_MOD_SYNCHRONIZED |
| 133 | +Indicates that the field is synchronized. |
| 134 | + |
| 135 | +FIELD_MOD_VIRTUAL |
| 136 | +Indicates that the field is virtual. |
| 137 | + |
| 138 | +FIELD_MOD_INTERFACE |
| 139 | +Indicates that the field is an interface. |
| 140 | + |
| 141 | +FIELD_MOD_FINAL |
| 142 | +Indicates that the field is final. |
| 143 | + |
| 144 | +FIELD_MOD_SENTINEL |
| 145 | +Indicates that the field is a sentinel. |
| 146 | + |
| 147 | +FIELD_MOD_INNERCLASS |
| 148 | +Indicates that the field is an inner class. |
| 149 | + |
| 150 | +FIELD_TYPE_OPTIONAL |
| 151 | +Indicates that the field is optional. |
| 152 | + |
| 153 | +FIELD_MOD_BYREF |
| 154 | +Indicates that the field is a reference argument. This is specifically for method arguments. |
| 155 | + |
| 156 | +FIELD_MOD_HIDDEN |
| 157 | +Indicates that the field must be hidden or presented in another context; for example, [!INCLUDE[vbprvb](../../../code-quality/includes/vbprvb_md.md)] static locals. |
| 158 | + |
| 159 | +FIELD_MOD_MARSHALASOBJECT |
| 160 | +Indicates that the field represents an object with an `IUnknown` interface. |
| 161 | + |
| 162 | +FIELD_MOD_SPECIAL_NAME |
| 163 | +Indicates that the field has a special name, for example, `.ctor` for a constructor ([!INCLUDE[vbprvb](../../../code-quality/includes/vbprvb_md.md)] only). |
| 164 | + |
| 165 | +FIELD_MOD_HIDEBYSIG |
| 166 | +Indicates that the field has the `Overloads` keyword applied to it ([!INCLUDE[vbprvb](../../../code-quality/includes/vbprvb_md.md)] only). |
| 167 | + |
| 168 | +FIELD_MOD_WRITEONLY |
| 169 | +Indicates that the field is write-only. This value is not included in `FIELD_MOD_ALL`, as the only use of such write-only fields is for function evaluation. A user must explicitly ask for `FIELD_MOD_WRITEONLY` fields. |
| 170 | + |
| 171 | +FIELD_MOD_ACCESS_MASK |
| 172 | +Indicates a mask for field access. |
| 173 | + |
| 174 | +FIELD_MOD_MASK |
| 175 | +Indicates a mask for field modifiers. |
| 176 | + |
| 177 | +## Remarks |
| 178 | +Used for the `dwModifiers` member of the [FIELD_INFO](../../../extensibility/debugger/reference/field-info.md) structure. |
| 179 | + |
| 180 | +These values are also passed to the [EnumFields](../../../extensibility/debugger/reference/idebugcontainerfield-enumfields.md) method to filter for specific fields. |
| 181 | + |
| 182 | +## Requirements |
| 183 | +Header: sh.h |
| 184 | + |
| 185 | +Namespace: Microsoft.VisualStudio.Debugger.Interop |
| 186 | + |
| 187 | +Assembly: Microsoft.VisualStudio.Debugger.Interop.dll |
| 188 | + |
| 189 | +## See Also |
| 190 | +[Enumerations](../../../extensibility/debugger/reference/enumerations-visual-studio-debugging.md) |
| 191 | +[FIELD_INFO](../../../extensibility/debugger/reference/field-info.md) |
| 192 | +[EnumFields](../../../extensibility/debugger/reference/idebugcontainerfield-enumfields.md) |
0 commit comments