LazyMemberInfo 构造函数

定义

初始化 LazyMemberInfo 类的新实例。Initializes a new instance of the LazyMemberInfo class.

重载

LazyMemberInfo(MemberInfo)

初始化 LazyMemberInfo 类的新实例,该实例表示指定的成员。Initializes a new instance of the LazyMemberInfo class, representing the specified member.

LazyMemberInfo(MemberTypes, Func<MemberInfo[]>)

使用指定的访问器初始化指定类型成员的 LazyMemberInfo 类的新实例。Initializes a new instance of the LazyMemberInfo class for a member of the specified type with the specified accessors.

LazyMemberInfo(MemberTypes, MemberInfo[])

使用指定的访问器初始化指定类型成员的 LazyMemberInfo 类的新实例。Initializes a new instance of the LazyMemberInfo class for a member of the specified type with the specified accessors.

LazyMemberInfo(MemberInfo)

初始化 LazyMemberInfo 类的新实例,该实例表示指定的成员。Initializes a new instance of the LazyMemberInfo class, representing the specified member.

public:
 LazyMemberInfo(System::Reflection::MemberInfo ^ member);
public LazyMemberInfo (System.Reflection.MemberInfo member);
new System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo : System.Reflection.MemberInfo -> System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo
Public Sub New (member As MemberInfo)

参数

member
MemberInfo

要表示的成员。The member to represent.

适用于

LazyMemberInfo(MemberTypes, Func<MemberInfo[]>)

使用指定的访问器初始化指定类型成员的 LazyMemberInfo 类的新实例。Initializes a new instance of the LazyMemberInfo class for a member of the specified type with the specified accessors.

public:
 LazyMemberInfo(System::Reflection::MemberTypes memberType, Func<cli::array <System::Reflection::MemberInfo ^> ^> ^ accessorsCreator);
public LazyMemberInfo (System.Reflection.MemberTypes memberType, Func<System.Reflection.MemberInfo[]> accessorsCreator);
new System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo : System.Reflection.MemberTypes * Func<System.Reflection.MemberInfo[]> -> System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo
Public Sub New (memberType As MemberTypes, accessorsCreator As Func(Of MemberInfo()))

参数

memberType
MemberTypes

所表示的成员的类型。The type of the represented member.

accessorsCreator
Func<MemberInfo[]>

一个函数,它的返回值是所表示的成员的访问器集合。A function whose return value is a collection of the accessors for the represented member.

适用于

LazyMemberInfo(MemberTypes, MemberInfo[])

使用指定的访问器初始化指定类型成员的 LazyMemberInfo 类的新实例。Initializes a new instance of the LazyMemberInfo class for a member of the specified type with the specified accessors.

public:
 LazyMemberInfo(System::Reflection::MemberTypes memberType, ... cli::array <System::Reflection::MemberInfo ^> ^ accessors);
public LazyMemberInfo (System.Reflection.MemberTypes memberType, params System.Reflection.MemberInfo[] accessors);
new System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo : System.Reflection.MemberTypes * System.Reflection.MemberInfo[] -> System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo
Public Sub New (memberType As MemberTypes, ParamArray accessors As MemberInfo())

参数

memberType
MemberTypes

所表示的成员的类型。The type of the represented member.

accessors
MemberInfo[]

所表示成员的访问器数组。An array of the accessors for the represented member.

例外

accessors 中的一个或多个对象无法访问这个成员。One or more of the objects in accessors are not valid accessors for this member.

适用于