SoapAttribute 类 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供所有 SOAP 特性的默认功能。
public ref class SoapAttribute : Attributepublic class SoapAttribute : Attribute[System.Runtime.InteropServices.ComVisible(true)]
public class SoapAttribute : Attributetype SoapAttribute = class
    inherit Attribute[<System.Runtime.InteropServices.ComVisible(true)>]
type SoapAttribute = class
    inherit AttributePublic Class SoapAttribute
Inherits Attribute- 继承
- 派生
- 属性
注解
是 SoapAttribute 非功能性的,只能用作 SOAP 属性的基类。
构造函数
| SoapAttribute() | 创建 SoapAttribute 的实例。 | 
字段
| ProtXmlNamespace | 在其下序列化当前 SOAP 特性的目标的 XML 命名空间的名称。 | 
| ReflectInfo | 一个反射对象,从 SoapAttribute 类派生的特性类使用该对象设置 XML 序列化信息。 | 
属性
| Embedded | 获取或设置一个值,该值指示是否必须在 SOAP 序列化期间嵌套该类型。 | 
| TypeId | 在派生类中实现时,获取此 Attribute 的唯一标识符。(继承自 Attribute) | 
| UseAttribute | 获取或设置一个值,该值指示当前特性的目标是否序列化为 XML 特性而非 XML 字段。 | 
| XmlNamespace | 获取或设置 XML 命名空间的名称。 | 
方法
| Equals(Object) | 返回一个值,该值指示此实例是否与指定的对象相等。(继承自 Attribute) | 
| GetHashCode() | 返回此实例的哈希代码。(继承自 Attribute) | 
| GetType() | 获取当前实例的 Type。(继承自 Object) | 
| IsDefaultAttribute() | 在派生类中重写时,指示此实例的值是否是派生类的默认值。(继承自 Attribute) | 
| Match(Object) | 当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。(继承自 Attribute) | 
| MemberwiseClone() | 创建当前 Object 的浅表副本。(继承自 Object) | 
| ToString() | 返回表示当前对象的字符串。(继承自 Object) | 
显式接口实现
| _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | 将一组名称映射为对应的一组调度标识符。(继承自 Attribute) | 
| _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | 检索对象的类型信息,然后可以使用该信息获取接口的类型信息。(继承自 Attribute) | 
| _Attribute.GetTypeInfoCount(UInt32) | 检索对象提供的类型信息接口的数量(0 或 1)。(继承自 Attribute) | 
| _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | 提供对某一对象公开的属性和方法的访问。(继承自 Attribute) |