Uredi

Deli z drugimi prek


InstanceDescriptor Constructors

Definition

Initializes a new instance of the InstanceDescriptor class.

Overloads

InstanceDescriptor(MemberInfo, ICollection)

Initializes a new instance of the InstanceDescriptor class using the specified member information and arguments.

InstanceDescriptor(MemberInfo, ICollection, Boolean)

Initializes a new instance of the InstanceDescriptor class using the specified member information, arguments, and value indicating whether the specified information completely describes the instance.

InstanceDescriptor(MemberInfo, ICollection)

Source:
InstanceDescriptor.cs
Source:
InstanceDescriptor.cs
Source:
InstanceDescriptor.cs

Initializes a new instance of the InstanceDescriptor class using the specified member information and arguments.

public:
 InstanceDescriptor(System::Reflection::MemberInfo ^ member, System::Collections::ICollection ^ arguments);
public InstanceDescriptor (System.Reflection.MemberInfo member, System.Collections.ICollection arguments);
public InstanceDescriptor (System.Reflection.MemberInfo? member, System.Collections.ICollection? arguments);
new System.ComponentModel.Design.Serialization.InstanceDescriptor : System.Reflection.MemberInfo * System.Collections.ICollection -> System.ComponentModel.Design.Serialization.InstanceDescriptor
Public Sub New (member As MemberInfo, arguments As ICollection)

Parameters

member
MemberInfo

The member information for the descriptor. This can be a MethodInfo, ConstructorInfo, FieldInfo, or PropertyInfo. If this is a MethodInfo, FieldInfo, or PropertyInfo, it must represent a static member.

arguments
ICollection

The collection of arguments to pass to the member. This parameter can be null or an empty collection if there are no arguments. The collection can also consist of other instances of InstanceDescriptor.

Exceptions

member is of type MethodInfo, FieldInfo, or PropertyInfo, and it does not represent a static member.

-or-

member is of type PropertyInfo and is not readable.

-or-

member is of type MethodInfo or ConstructorInfo, and the number of arguments in arguments does not match the signature of member.

-or-

member is of type ConstructorInfo and represents a static member.

-or-

member is of type FieldInfo, and the number of arguments in arguments is not zero.

Applies to

InstanceDescriptor(MemberInfo, ICollection, Boolean)

Source:
InstanceDescriptor.cs
Source:
InstanceDescriptor.cs
Source:
InstanceDescriptor.cs

Initializes a new instance of the InstanceDescriptor class using the specified member information, arguments, and value indicating whether the specified information completely describes the instance.

public:
 InstanceDescriptor(System::Reflection::MemberInfo ^ member, System::Collections::ICollection ^ arguments, bool isComplete);
public InstanceDescriptor (System.Reflection.MemberInfo member, System.Collections.ICollection arguments, bool isComplete);
public InstanceDescriptor (System.Reflection.MemberInfo? member, System.Collections.ICollection? arguments, bool isComplete);
new System.ComponentModel.Design.Serialization.InstanceDescriptor : System.Reflection.MemberInfo * System.Collections.ICollection * bool -> System.ComponentModel.Design.Serialization.InstanceDescriptor
Public Sub New (member As MemberInfo, arguments As ICollection, isComplete As Boolean)

Parameters

member
MemberInfo

The member information for the descriptor. This can be a MethodInfo, ConstructorInfo, FieldInfo, or PropertyInfo. If this is a MethodInfo, FieldInfo, or PropertyInfo, it must represent a static member.

arguments
ICollection

The collection of arguments to pass to the member. This parameter can be null or an empty collection if there are no arguments. The collection can also consist of other instances of InstanceDescriptor.

isComplete
Boolean

true if the specified information completely describes the instance; otherwise, false.

Exceptions

member is of type MethodInfo, FieldInfo, or PropertyInfo, and it does not represent a static member

member is of type PropertyInfo and is not readable.

member is of type MethodInfo or ConstructorInfo and the number of arguments in arguments does not match the signature of member.

member is of type ConstructorInfo and represents a static member

member is of type FieldInfo, and the number of arguments in arguments is not zero.

Applies to