CustomReflectionContext.AddProperties(Type) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在派生类中重写时,提供指定类型的附加属性集合,如此反射上下文中所示。
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(Type, String, Func<Object,Object>, Action<Object,Object>) 该方法。