SoapDocumentMethodAttribute.ParameterStyle プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As SoapDocumentMethodAttribute Dim value As SoapParameterStyle value = instance.ParameterStyle instance.ParameterStyle = value
public: property SoapParameterStyle ParameterStyle { SoapParameterStyle get (); void set (SoapParameterStyle value); }
/** @property */ public SoapParameterStyle get_ParameterStyle () /** @property */ public void set_ParameterStyle (SoapParameterStyle value)
public function get ParameterStyle () : SoapParameterStyle public function set ParameterStyle (value : SoapParameterStyle)
XML Web サービス メソッドとの間で送受信される SOAP メッセージの SoapParameterStyle。既定値は Wrapped です。

PlaceOrder XML Web サービス メソッドとの間で送受信される SOAP メッセージで送信するパラメータを、1 つの XML 要素内にカプセル化しないように指定するコード例を次に示します。
<%@ WebService Language="VB" Class="ShoppingCart" %> Imports System.Web.Services Imports System.Web.Services.Protocols Imports System Public Class ShoppingCart ' Specify that parameters are not encapsulated within one XML element. <SoapDocumentMethod(ParameterStyle:=SoapParameterStyle.Bare), _ WebMethod()> _ Public Sub PlaceOrder(OrderDetails as OrderItem) ' Process the order on the back end. End Sub End Class Public Class OrderItem Public Count As Integer Public Description as String Public OrderDate as DateTime Public CustomerID as Long Public Cost as Decimal End Class
<%@ WebService Language="C#" Class="ShoppingCart" %> using System.Web.Services; using System.Web.Services.Protocols; using System; public class ShoppingCart { // Specify that parameters are not encapsulated within one XML element. [ SoapDocumentMethod(ParameterStyle=SoapParameterStyle.Bare) ] [ WebMethod] public void PlaceOrder(OrderItem OrderDetails) { // Process the order on the back end. } } public class OrderItem { public int Count; public int Description; public DateTime OrderDate; public long CustomerID; public Decimal Cost; }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSoapDocumentMethodAttribute.ParameterStyle プロパティを検索する場合は、下記のリンクをクリックしてください。

- SoapDocumentMethodAttribute.ParameterStyle プロパティのページへのリンク