Redigera

Dela via


Expression.MemberBind Method

Definition

Creates a MemberMemberBinding that represents the recursive initialization of members of a member.

Overloads

MemberBind(MethodInfo, MemberBinding[])

Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.

MemberBind(MethodInfo, IEnumerable<MemberBinding>)

Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.

MemberBind(MemberInfo, IEnumerable<MemberBinding>)

Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.

MemberBind(MemberInfo, MemberBinding[])

Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.

MemberBind(MethodInfo, MemberBinding[])

Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs

Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.

public:
 static System::Linq::Expressions::MemberMemberBinding ^ MemberBind(System::Reflection::MethodInfo ^ propertyAccessor, ... cli::array <System::Linq::Expressions::MemberBinding ^> ^ bindings);
public static System.Linq.Expressions.MemberMemberBinding MemberBind (System.Reflection.MethodInfo propertyAccessor, params System.Linq.Expressions.MemberBinding[] bindings);
static member MemberBind : System.Reflection.MethodInfo * System.Linq.Expressions.MemberBinding[] -> System.Linq.Expressions.MemberMemberBinding
Public Shared Function MemberBind (propertyAccessor As MethodInfo, ParamArray bindings As MemberBinding()) As MemberMemberBinding

Parameters

propertyAccessor
MethodInfo

The MethodInfo that represents a property accessor method.

bindings
MemberBinding[]

An array of MemberBinding objects to use to populate the Bindings collection.

Returns

A MemberMemberBinding that has the BindingType property equal to MemberBinding, the Member property set to the PropertyInfo that represents the property accessed in propertyAccessor, and Bindings properties set to the specified values.

Exceptions

propertyAccessor or bindings is null.

propertyAccessor does not represent a property accessor method.

-or-

The Member property of an element of bindings does not represent a member of the type of the property accessed by the method that propertyAccessor represents.

Applies to

MemberBind(MethodInfo, IEnumerable<MemberBinding>)

Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs

Creates a MemberMemberBinding that represents the recursive initialization of members of a member that is accessed by using a property accessor method.

public:
 static System::Linq::Expressions::MemberMemberBinding ^ MemberBind(System::Reflection::MethodInfo ^ propertyAccessor, System::Collections::Generic::IEnumerable<System::Linq::Expressions::MemberBinding ^> ^ bindings);
public static System.Linq.Expressions.MemberMemberBinding MemberBind (System.Reflection.MethodInfo propertyAccessor, System.Collections.Generic.IEnumerable<System.Linq.Expressions.MemberBinding> bindings);
static member MemberBind : System.Reflection.MethodInfo * seq<System.Linq.Expressions.MemberBinding> -> System.Linq.Expressions.MemberMemberBinding
Public Shared Function MemberBind (propertyAccessor As MethodInfo, bindings As IEnumerable(Of MemberBinding)) As MemberMemberBinding

Parameters

propertyAccessor
MethodInfo

The MethodInfo that represents a property accessor method.

bindings
IEnumerable<MemberBinding>

An IEnumerable<T> that contains MemberBinding objects to use to populate the Bindings collection.

Returns

A MemberMemberBinding that has the BindingType property equal to MemberBinding, the Member property set to the PropertyInfo that represents the property accessed in propertyAccessor, and Bindings properties set to the specified values.

Exceptions

propertyAccessor or bindings is null.

propertyAccessor does not represent a property accessor method.

-or-

The Member property of an element of bindings does not represent a member of the type of the property accessed by the method that propertyAccessor represents.

Applies to

MemberBind(MemberInfo, IEnumerable<MemberBinding>)

Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs

Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.

public:
 static System::Linq::Expressions::MemberMemberBinding ^ MemberBind(System::Reflection::MemberInfo ^ member, System::Collections::Generic::IEnumerable<System::Linq::Expressions::MemberBinding ^> ^ bindings);
public static System.Linq.Expressions.MemberMemberBinding MemberBind (System.Reflection.MemberInfo member, System.Collections.Generic.IEnumerable<System.Linq.Expressions.MemberBinding> bindings);
static member MemberBind : System.Reflection.MemberInfo * seq<System.Linq.Expressions.MemberBinding> -> System.Linq.Expressions.MemberMemberBinding
Public Shared Function MemberBind (member As MemberInfo, bindings As IEnumerable(Of MemberBinding)) As MemberMemberBinding

Parameters

member
MemberInfo

The MemberInfo to set the Member property equal to.

bindings
IEnumerable<MemberBinding>

An IEnumerable<T> that contains MemberBinding objects to use to populate the Bindings collection.

Returns

A MemberMemberBinding that has the BindingType property equal to MemberBinding and the Member and Bindings properties set to the specified values.

Exceptions

member or bindings is null.

member does not represent a field or property.

-or-

The Member property of an element of bindings does not represent a member of the type of the field or property that member represents.

Remarks

The member parameter must represent a field or property.

Applies to

MemberBind(MemberInfo, MemberBinding[])

Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs
Source:
MemberMemberBinding.cs

Creates a MemberMemberBinding that represents the recursive initialization of members of a field or property.

public:
 static System::Linq::Expressions::MemberMemberBinding ^ MemberBind(System::Reflection::MemberInfo ^ member, ... cli::array <System::Linq::Expressions::MemberBinding ^> ^ bindings);
public static System.Linq.Expressions.MemberMemberBinding MemberBind (System.Reflection.MemberInfo member, params System.Linq.Expressions.MemberBinding[] bindings);
static member MemberBind : System.Reflection.MemberInfo * System.Linq.Expressions.MemberBinding[] -> System.Linq.Expressions.MemberMemberBinding
Public Shared Function MemberBind (member As MemberInfo, ParamArray bindings As MemberBinding()) As MemberMemberBinding

Parameters

member
MemberInfo

The MemberInfo to set the Member property equal to.

bindings
MemberBinding[]

An array of MemberBinding objects to use to populate the Bindings collection.

Returns

A MemberMemberBinding that has the BindingType property equal to MemberBinding and the Member and Bindings properties set to the specified values.

Exceptions

member or bindings is null.

member does not represent a field or property.

-or-

The Member property of an element of bindings does not represent a member of the type of the field or property that member represents.

Remarks

The member parameter must represent a field or property.

Applies to