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 方法。

適用於