点击或拖拽改变大小
盛派网络

NotifyPropertyChangedInvocatorAttribute 类

Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!

NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039

Indicates that the method is contained in a type that implements System.ComponentModel.INotifyPropertyChanged interface and this method is used to notify that some property value changed.
继承层次
SystemObject
  SystemAttribute
    Senparc.Weixin.AnnotationsNotifyPropertyChangedInvocatorAttribute

命名空间:  Senparc.Weixin.Annotations
程序集:  Senparc.Weixin (在 Senparc.Weixin.dll 中) 版本:6.5.0.26158
语法
[AttributeUsageAttribute(AttributeTargets.Method)]
public sealed class NotifyPropertyChangedInvocatorAttribute : Attribute

NotifyPropertyChangedInvocatorAttribute 类型公开以下成员。

构造函数
  名称说明
公共方法NotifyPropertyChangedInvocatorAttribute
初始化 NotifyPropertyChangedInvocatorAttribute 类的一个新实例
公共方法NotifyPropertyChangedInvocatorAttribute(String)
初始化 NotifyPropertyChangedInvocatorAttribute 类的一个新实例
Top
属性
  名称说明
公共属性ParameterName
Top
扩展方法
  名称说明
公共扩展器方法Serialize
序列化对象
(由 StackExchangeRedisExtensions 定义。)
公共扩展器方法ToHashEntries
Serialize in Redis format
(由 RedisUtils 定义。)
公共扩展器方法ToJson
把数据转换为Json格式(使用Newtonsoft.Json.dll)
(由 ObjectExtensions 定义。)
Top
备注
The method should be non-static and conform to one of the supported signatures: NotifyChanged(string)NotifyChanged(params string[])NotifyChanged{T}(Expression{Func{T}})NotifyChanged{T,U}(Expression{Func{T,U}})SetProperty{T}(ref T, T, string)
示例
public class Foo : INotifyPropertyChanged {
  public event PropertyChangedEventHandler PropertyChanged;
  [NotifyPropertyChangedInvocator]
  protected virtual void NotifyChanged(string propertyName) { ... }

  private string _name;
  public string Name {
    get { return _name; }
    set { _name = value; NotifyChanged("LastName"); /* Warning */ }
  }
}
Examples of generated notifications: NotifyChanged("Property")NotifyChanged(() => Property)NotifyChanged((VM x) => x.Property)SetProperty(ref myField, value, "Property")
参见