Repository navigation
Expand file tree
/
Copy pathCodeMemberProperty.xml
More file actions
329 lines (305 loc) · 17.6 KB
/
Copy pathCodeMemberProperty.xml
File metadata and controls
329 lines (305 loc) · 17.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
<Type Name="CodeMemberProperty" FullName="System.CodeDom.CodeMemberProperty">
<TypeSignature Language="C#" Value="public class CodeMemberProperty : System.CodeDom.CodeTypeMember" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit CodeMemberProperty extends System.CodeDom.CodeTypeMember" />
<TypeSignature Language="DocId" Value="T:System.CodeDom.CodeMemberProperty" />
<TypeSignature Language="VB.NET" Value="Public Class CodeMemberProperty
Inherits CodeTypeMember" />
<TypeSignature Language="C++ CLI" Value="public ref class CodeMemberProperty : System::CodeDom::CodeTypeMember" />
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.CodeDom.CodeTypeMember</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.ClassInterface</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents a declaration for a property of a type.</summary>
<remarks>
<format type="text/markdown"><]
[!code-csharp[CodeMemberPropertyExample#3](~/samples/snippets/csharp/VS_Snippets_CLR/CodeMemberPropertyExample/CS/codememberpropertyexample.cs#3)]
[!code-vb[CodeMemberPropertyExample#3](~/samples/snippets/visualbasic/VS_Snippets_CLR/CodeMemberPropertyExample/VB/codememberpropertyexample.vb#3)]
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public CodeMemberProperty ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.CodeDom.CodeMemberProperty.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 CodeMemberProperty();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.CodeDom.CodeMemberProperty" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetStatements">
<MemberSignature Language="C#" Value="public System.CodeDom.CodeStatementCollection GetStatements { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.CodeDom.CodeStatementCollection GetStatements" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.GetStatements" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property GetStatements As CodeStatementCollection" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::CodeDom::CodeStatementCollection ^ GetStatements { System::CodeDom::CodeStatementCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CodeDom.CodeStatementCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the collection of <see langword="get" /> statements for the property.</summary>
<value>A <see cref="T:System.CodeDom.CodeStatementCollection" /> that contains the <see langword="get" /> statements for the member property.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
One of the statements in this <xref:System.CodeDom.CodeStatementCollection> should return the value for the member property. Use a <xref:System.CodeDom.CodeMethodReturnStatement> to return a value of the data type of the property.
]]></format>
</remarks>
<altmember cref="T:System.CodeDom.CodeStatementCollection" />
<altmember cref="T:System.CodeDom.CodeMethodReturnStatement" />
</Docs>
</Member>
<Member MemberName="HasGet">
<MemberSignature Language="C#" Value="public bool HasGet { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasGet" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.HasGet" />
<MemberSignature Language="VB.NET" Value="Public Property HasGet As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool HasGet { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the property has a <see langword="get" /> method accessor.</summary>
<value>
<see langword="true" /> if the <see langword="Count" /> property of the <see cref="P:System.CodeDom.CodeMemberProperty.GetStatements" /> collection is non-zero, or if the value of this property has been set to <see langword="true" />; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
> [!NOTE]
> Setting this property to `false` clears the <xref:System.CodeDom.CodeMemberProperty.GetStatements%2A> collection.
]]></format>
</remarks>
<altmember cref="P:System.CodeDom.CodeMemberProperty.HasSet" />
</Docs>
</Member>
<Member MemberName="HasSet">
<MemberSignature Language="C#" Value="public bool HasSet { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasSet" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.HasSet" />
<MemberSignature Language="VB.NET" Value="Public Property HasSet As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool HasSet { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the property has a <see langword="set" /> method accessor.</summary>
<value>
<see langword="true" /> if the <see cref="P:System.Collections.CollectionBase.Count" /> property of the <see cref="P:System.CodeDom.CodeMemberProperty.SetStatements" /> collection is non-zero; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
<xref:System.CodeDom.CodeMemberProperty.HasSet%2A> will return `false` if the property is read-only.
> [!NOTE]
> Setting this property to `false` will clear the <xref:System.CodeDom.CodeMemberProperty.SetStatements%2A> collection.
]]></format>
</remarks>
<altmember cref="P:System.CodeDom.CodeMemberProperty.HasGet" />
</Docs>
</Member>
<Member MemberName="ImplementationTypes">
<MemberSignature Language="C#" Value="public System.CodeDom.CodeTypeReferenceCollection ImplementationTypes { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.CodeDom.CodeTypeReferenceCollection ImplementationTypes" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.ImplementationTypes" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property ImplementationTypes As CodeTypeReferenceCollection" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::CodeDom::CodeTypeReferenceCollection ^ ImplementationTypes { System::CodeDom::CodeTypeReferenceCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CodeDom.CodeTypeReferenceCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the data types of any interfaces that the property implements.</summary>
<value>A <see cref="T:System.CodeDom.CodeTypeReferenceCollection" /> that indicates the data types the property implements.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The types referenced by this collection must consist of interfaces.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Parameters">
<MemberSignature Language="C#" Value="public System.CodeDom.CodeParameterDeclarationExpressionCollection Parameters { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.CodeDom.CodeParameterDeclarationExpressionCollection Parameters" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.Parameters" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Parameters As CodeParameterDeclarationExpressionCollection" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::CodeDom::CodeParameterDeclarationExpressionCollection ^ Parameters { System::CodeDom::CodeParameterDeclarationExpressionCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CodeDom.CodeParameterDeclarationExpressionCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the collection of declaration expressions for the property.</summary>
<value>A <see cref="T:System.CodeDom.CodeParameterDeclarationExpressionCollection" /> that indicates the declaration expressions for the property.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
> [!NOTE]
> In general, properties do not have parameters. CodeDom supports an exception to this. For any property that has the special name "Item" and one or more parameters, it will declare an indexer property for the class. However, not all languages support the declaration of indexers.
]]></format>
</remarks>
<altmember cref="T:System.CodeDom.CodeParameterDeclarationExpressionCollection" />
</Docs>
</Member>
<Member MemberName="PrivateImplementationType">
<MemberSignature Language="C#" Value="public System.CodeDom.CodeTypeReference PrivateImplementationType { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.CodeDom.CodeTypeReference PrivateImplementationType" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.PrivateImplementationType" />
<MemberSignature Language="VB.NET" Value="Public Property PrivateImplementationType As CodeTypeReference" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::CodeDom::CodeTypeReference ^ PrivateImplementationType { System::CodeDom::CodeTypeReference ^ get(); void set(System::CodeDom::CodeTypeReference ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CodeDom.CodeTypeReference</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the data type of the interface, if any, this property, if private, implements.</summary>
<value>A <see cref="T:System.CodeDom.CodeTypeReference" /> that indicates the data type of the interface, if any, the property, if private, implements.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The type referenced by this property must be an interface.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="SetStatements">
<MemberSignature Language="C#" Value="public System.CodeDom.CodeStatementCollection SetStatements { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.CodeDom.CodeStatementCollection SetStatements" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.SetStatements" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property SetStatements As CodeStatementCollection" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::CodeDom::CodeStatementCollection ^ SetStatements { System::CodeDom::CodeStatementCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CodeDom.CodeStatementCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the collection of <see langword="set" /> statements for the property.</summary>
<value>A <see cref="T:System.CodeDom.CodeStatementCollection" /> that contains the <see langword="set" /> statements for the member property.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
One of the statements in this collection typically sets a value for the property. Often, the statements within a set method accessor perform checking to determine whether to set or translate the specified value for the property. A <xref:System.CodeDom.CodePropertySetValueReferenceExpression> represents a reference to the object passed to the set method.
]]></format>
</remarks>
<altmember cref="T:System.CodeDom.CodeStatementCollection" />
<altmember cref="T:System.CodeDom.CodePropertySetValueReferenceExpression" />
</Docs>
</Member>
<Member MemberName="Type">
<MemberSignature Language="C#" Value="public System.CodeDom.CodeTypeReference Type { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.CodeDom.CodeTypeReference Type" />
<MemberSignature Language="DocId" Value="P:System.CodeDom.CodeMemberProperty.Type" />
<MemberSignature Language="VB.NET" Value="Public Property Type As CodeTypeReference" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::CodeDom::CodeTypeReference ^ Type { System::CodeDom::CodeTypeReference ^ get(); void set(System::CodeDom::CodeTypeReference ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.CodeDom</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.CodeDom.CodeTypeReference</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the data type of the property.</summary>
<value>A <see cref="T:System.CodeDom.CodeTypeReference" /> that indicates the data type of the property.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>