NonSerializedAttribute 成员

指示可序列化类的某个字段不应被序列化。无法继承此类。

下表列出了由 NonSerializedAttribute 类型公开的成员。

公共构造函数

  名称 说明
Public method Supported by the .NET Compact Framework NonSerializedAttribute 初始化 NonSerializedAttribute 类的新实例。

页首

公共属性

  名称 说明
Public property TypeId  当在派生类中实现时,获取该 Attribute 的唯一标识符。(从 Attribute 继承。)

页首

公共方法

  名称 说明
Public method Supported by the .NET Compact Framework Equals  已重载。 (从 Attribute 继承。)
Public method Static Supported by the .NET Compact Framework GetCustomAttribute  已重载。 检索应用于程序集、模块、类型成员或方法参数的指定类型的自定义属性。 (从 Attribute 继承。)
Public method Static Supported by the .NET Compact Framework GetCustomAttributes  已重载。 检索应用于程序集、模块、类型成员或方法参数的自定义属性的数组。 (从 Attribute 继承。)
Public method Supported by the .NET Compact Framework GetHashCode  返回此实例的哈希代码。 (从 Attribute 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method IsDefaultAttribute  当在派生类中重写时,指示此实例的值是否是派生类的默认值。 (从 Attribute 继承。)
Public method Static Supported by the .NET Compact Framework IsDefined  已重载。 确定是否将指定类型的任意自定义属性应用于程序集、模块、类型成员或方法参数。 (从 Attribute 继承。)
Public method Supported by the .NET Compact Framework Match  当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。 (从 Attribute 继承。)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

请参见

参考

NonSerializedAttribute 类
System 命名空间
SerializableAttribute
Attribute 类
ISerializable

其他资源

利用属性扩展元数据
XML 和 SOAP 序列化