Breyta

Deila með


TypeInfo.DeclaredMembers Property

Definition

Gets a collection of the members defined by the current type.

public:
 virtual property System::Collections::Generic::IEnumerable<System::Reflection::MemberInfo ^> ^ DeclaredMembers { System::Collections::Generic::IEnumerable<System::Reflection::MemberInfo ^> ^ get(); };
public virtual System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo> DeclaredMembers { get; }
member this.DeclaredMembers : seq<System.Reflection.MemberInfo>
Public Overridable ReadOnly Property DeclaredMembers As IEnumerable(Of MemberInfo)

Property Value

A collection of the members defined by the current type.

Remarks

To filter the results of the DeclaredMembers property, use LINQ queries. For reflection objects that originate with the runtime (for example, as the result of typeof(Object)), you can traverse the inheritance tree by using the methods in the RuntimeReflectionExtensions class. Consumers of objects from customized reflection contexts cannot use these methods and must traverse the inheritance tree themselves.

Applies to