共用方式為


CustomReflectionContext.AddProperties(Type) 方法

定義

在衍生類別中覆寫時,為指定的類型提供額外屬性集合,如這個反射內容所表示。

protected:
 virtual System::Collections::Generic::IEnumerable<System::Reflection::PropertyInfo ^> ^ AddProperties(Type ^ type);
protected virtual System.Collections.Generic.IEnumerable<System.Reflection.PropertyInfo> AddProperties (Type type);
abstract member AddProperties : Type -> seq<System.Reflection.PropertyInfo>
override this.AddProperties : Type -> seq<System.Reflection.PropertyInfo>
Protected Overridable Function AddProperties (type As Type) As IEnumerable(Of PropertyInfo)
Protected Iterator Overridable Function AddProperties (type As Type) As IEnumerable(Of PropertyInfo)

參數

type
Type

要在其中加入屬性的類型。

傳回

所指定類型的其他屬性集合。

備註

覆寫這個方法,以指定應該將哪些屬性新增至指定的型別。 若要建立屬性,請使用 CreateProperty 方法。

適用於