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

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

SoapDocumentServiceAttribute.ParameterStyle プロパティ

XML Web サービスの XML Web サービス メソッドに対する SOAP メッセージの XML 部分で、<Body> 要素の後に続く単一の要素内にパラメータをカプセル化するかどうかを制御する既定の設定を取得または設定します。

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

Public Property ParameterStyle As
 SoapParameterStyle
Dim instance As SoapDocumentServiceAttribute
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 サービス内の XML Web サービス メソッドとの間で送受信される SOAP 要求と SOAP 応答の既定の SoapParameterStyle。この値を設定しない場合、既定値は Wrapped になります。

使用例使用例
<%@ WebService Language="VB" Class="SumService"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Web.Services.Description

    <SoapDocumentService(SoapBindingUse.Literal, _
                             SoapParameterStyle.Wrapped)> _
    Public Class SumService 
          Inherits System.Web.Services.WebService
    
        <WebMethod> _
        Public Function Add(a As
 Integer, b as Integer)
           return a + b
        End Function
    End Class
<%@ WebService Language="c#" Class="SumService" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Services.Description;

    [SoapDocumentService(SoapBindingUse.Literal,
                         SoapParameterStyle.Wrapped)]
    public class SumService : System.Web.Services.WebService
    {
        [WebMethod]
        public int Add(int
 a, int b)
        {
            return a + b;
        }
    }
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapDocumentServiceAttribute クラス
SoapDocumentServiceAttribute メンバ
System.Web.Services.Protocols 名前空間
SoapParameterStyle
その他の技術情報
SOAP メッセージ形式のカスタマイズ



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2026 GRAS Group, Inc.RSS