Members Property
Collapse the table of content
Expand the table of content

NewExpression.Members Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the members that can retrieve the values of the fields that were initialized with constructor arguments.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

'Declaration
Public ReadOnly Property Members As ReadOnlyCollection(Of MemberInfo)

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection(Of MemberInfo)
A collection of MemberInfo objects that represent the members that can retrieve the values of the fields that were initialized with constructor arguments.

The Members property provides a mapping between the constructor arguments and the type members that correspond to those values. In the case of the construction of an anonymous type, this property maps the constructor arguments to the properties that are exposed by the anonymous type. This mapping information is important because the fields that are initialized by the construction of an anonymous type, or the properties that access those fields, are not discoverable through the Constructor or Arguments properties of a NewExpression node.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft