SoapDocumentMethodAttribute.ParameterStyle プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SoapDocumentMethodAttribute.ParameterStyle プロパティの意味・解説 

SoapDocumentMethodAttribute.ParameterStyle プロパティ

SOAP メッセージの XML 部分の Body 要素の下にある単一の XML 要素内に、パラメータをカプセル化するかどうかを示す値を取得または設定します。

名前空間: System.Web.Services.Protocols
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public Property ParameterStyle As
 SoapParameterStyle
Dim instance As SoapDocumentMethodAttribute
Dim value As SoapParameterStyle

value = instance.ParameterStyle

instance.ParameterStyle = value
public SoapParameterStyle ParameterStyle { get;
 set; }
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;
}


プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapDocumentMethodAttribute クラス
SoapDocumentMethodAttribute メンバ
System.Web.Services.Protocols 名前空間
SoapParameterStyle
その他の技術情報
SOAP メッセージ形式のカスタマイズ



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

SoapDocumentMethodAttribute.ParameterStyle プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SoapDocumentMethodAttribute.ParameterStyle プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS