Επεξεργασία

Κοινή χρήση μέσω


NewExpression.Members Property

Definition

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

public:
 property System::Collections::ObjectModel::ReadOnlyCollection<System::Reflection::MemberInfo ^> ^ Members { System::Collections::ObjectModel::ReadOnlyCollection<System::Reflection::MemberInfo ^> ^ get(); };
public System.Collections.ObjectModel.ReadOnlyCollection<System.Reflection.MemberInfo> Members { get; }
public System.Collections.ObjectModel.ReadOnlyCollection<System.Reflection.MemberInfo>? Members { get; }
member this.Members : System.Collections.ObjectModel.ReadOnlyCollection<System.Reflection.MemberInfo>
Public ReadOnly Property Members As ReadOnlyCollection(Of MemberInfo)

Property Value

A collection of MemberInfo objects that represent the members that can retrieve the values of the fields that were initialized with constructor arguments.

Remarks

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.

Applies to