SetMemberBinder 类

定义

表示调用站点的动态设置成员操作,提供有关操作的绑定语义和详细信息。Represents the dynamic set member operation at the call site, providing the binding semantic and the details about the operation.

public ref class SetMemberBinder abstract : System::Dynamic::DynamicMetaObjectBinder
public abstract class SetMemberBinder : System.Dynamic.DynamicMetaObjectBinder
type SetMemberBinder = class
    inherit DynamicMetaObjectBinder
Public MustInherit Class SetMemberBinder
Inherits DynamicMetaObjectBinder
继承

构造函数

SetMemberBinder(String, Boolean)

初始化 SetMemberBinder 的新实例。Initializes a new instance of the SetMemberBinder.

属性

IgnoreCase

获取指示字符串比较是否应当忽略成员名称的大小写的值。Gets the value indicating if the string comparison should ignore the case of the member name.

Name

获取要获取的成员名称。Gets the name of the member to obtain.

ReturnType

操作的结果类型。The result type of the operation.

方法

Bind(DynamicMetaObject, DynamicMetaObject[])

执行动态设置成员操作的绑定。Performs the binding of the dynamic set member operation.

Bind(Object[], ReadOnlyCollection<ParameterExpression>, LabelTarget)

对一组参数执行动态操作的运行时绑定。Performs the runtime binding of the dynamic operation on a set of arguments.

(继承自 DynamicMetaObjectBinder)
BindDelegate<T>(CallSite<T>, Object[])

提供低级别的运行时绑定支持。Provides low-level runtime binding support. 类可以对此进行重写,并为规则的实现提供直接委托。Classes can override this and provide a direct delegate for the implementation of rule. 这样,就可以将规则保存到磁盘,使专用规则在运行时可用,或则提供不同的缓存策略。This can enable saving rules to disk, having specialized rules available at runtime, or providing a different caching policy.

(继承自 CallSiteBinder)
CacheTarget<T>(T)

将一个目标添加到已知目标的缓存。Adds a target to the cache of known targets. 在调用 BindDelegate 生成新规则之前,将扫描已缓存的目标。The cached targets will be scanned before calling BindDelegate to produce the new rule.

(继承自 CallSiteBinder)
Defer(DynamicMetaObject, DynamicMetaObject[])

延迟操作绑定,直至已计算出所有动态操作参数的运行时值。Defers the binding of the operation until later time when the runtime values of all dynamic operation arguments have been computed.

(继承自 DynamicMetaObjectBinder)
Defer(DynamicMetaObject[])

延迟操作绑定,直至已计算出所有动态操作参数的运行时值。Defers the binding of the operation until later time when the runtime values of all dynamic operation arguments have been computed.

(继承自 DynamicMetaObjectBinder)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
FallbackSetMember(DynamicMetaObject, DynamicMetaObject)

如果无法绑定目标动态对象,则执行动态集成员操作的绑定。Performs the binding of the dynamic set member operation if the target dynamic object cannot bind.

FallbackSetMember(DynamicMetaObject, DynamicMetaObject, DynamicMetaObject)

如果无法绑定目标动态对象,则执行动态集成员操作的绑定。Performs the binding of the dynamic set member operation if the target dynamic object cannot bind.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetUpdateExpression(Type)

获取一个表达式,该表达式将使绑定得到更新。Gets an expression that will cause the binding to be updated. 它指示表达式的绑定不再有效。It indicates that the expression's binding is no longer valid. 通常在动态对象的“版本”发生更改时使用它。This is typically used when the "version" of a dynamic object has changed.

(继承自 DynamicMetaObjectBinder)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于