SoapDocumentServiceAttribute 构造函数   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SoapDocumentServiceAttribute 类的新实例。
重载
| SoapDocumentServiceAttribute() | 初始化 SoapDocumentServiceAttribute 类的新实例,将所有属性都设置为其默认值。 | 
| SoapDocumentServiceAttribute(SoapBindingUse) | 初始化 SoapDocumentServiceAttribute 类的新实例,设置参数的格式设置。 | 
| SoapDocumentServiceAttribute(SoapBindingUse, SoapParameterStyle) | 初始化 SoapDocumentServiceAttribute 类的新实例,该类设置参数的格式设置并设置参数是否封装在 SOAP 消息中的  | 
SoapDocumentServiceAttribute()
初始化 SoapDocumentServiceAttribute 类的新实例,将所有属性都设置为其默认值。
public:
 SoapDocumentServiceAttribute();public SoapDocumentServiceAttribute ();Public Sub New ()适用于
SoapDocumentServiceAttribute(SoapBindingUse)
初始化 SoapDocumentServiceAttribute 类的新实例,设置参数的格式设置。
public:
 SoapDocumentServiceAttribute(System::Web::Services::Description::SoapBindingUse use);public SoapDocumentServiceAttribute (System.Web.Services.Description.SoapBindingUse use);new System.Web.Services.Protocols.SoapDocumentServiceAttribute : System.Web.Services.Description.SoapBindingUse -> System.Web.Services.Protocols.SoapDocumentServiceAttributePublic Sub New (use As SoapBindingUse)参数
- use
- SoapBindingUse
XML Web services 的参数格式设置。 设置 Use 属性。
适用于
SoapDocumentServiceAttribute(SoapBindingUse, SoapParameterStyle)
初始化 SoapDocumentServiceAttribute 类的新实例,该类设置参数的格式设置并设置参数是否封装在 SOAP 消息中的 Body 元素下的单个 XML 元素中。
public:
 SoapDocumentServiceAttribute(System::Web::Services::Description::SoapBindingUse use, System::Web::Services::Protocols::SoapParameterStyle paramStyle);public SoapDocumentServiceAttribute (System.Web.Services.Description.SoapBindingUse use, System.Web.Services.Protocols.SoapParameterStyle paramStyle);new System.Web.Services.Protocols.SoapDocumentServiceAttribute : System.Web.Services.Description.SoapBindingUse * System.Web.Services.Protocols.SoapParameterStyle -> System.Web.Services.Protocols.SoapDocumentServiceAttributePublic Sub New (use As SoapBindingUse, paramStyle As SoapParameterStyle)参数
- use
- SoapBindingUse
参数格式设置样式。 设置 Use 属性。
- paramStyle
- SoapParameterStyle
设置参数是否封装在 XML Web services 中发往和来自 XML Web services 方法的 SOAP 消息中的 Body 元素下的单个 XML 元素中。 设置 ParameterStyle 属性。