TypeInfo.DeclaredFields Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection of the fields defined by the current type.
public:
virtual property System::Collections::Generic::IEnumerable<System::Reflection::FieldInfo ^> ^ DeclaredFields { System::Collections::Generic::IEnumerable<System::Reflection::FieldInfo ^> ^ get(); };
public virtual System.Collections.Generic.IEnumerable<System.Reflection.FieldInfo> DeclaredFields { get; }
member this.DeclaredFields : seq<System.Reflection.FieldInfo>
Public Overridable ReadOnly Property DeclaredFields As IEnumerable(Of FieldInfo)
Property Value
A collection of the fields defined by the current type.
Remarks
To filter the results of the DeclaredFields 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
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示