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

Dim instance As SoapRpcMethodAttribute Dim value As String value = instance.RequestElementName instance.RequestElementName = value
/** @property */ public String get_RequestElementName () /** @property */ public void set_RequestElementName (String value)
public function get RequestElementName () : String public function set RequestElementName (value : String)
XML Web サービス メソッドに対する SOAP 要求に関連付けられている XML 要素。既定値は、XML Web サービス メソッドの名前です。


RequestElementName プロパティを MyCustomRequestElement に設定するコード例を次に示します。
<%@ WebService Language="VB" Class="SoapRpcMethodSample" %> Imports System.Web.Services Imports System.Web.Services.Protocols Public Class SoapRpcMethodSample <WebMethod(),SoapRpcMethod(RequestNamespace :="http://www.contoso.com",RequestElementName := "MyCustomRequestElement")> _ Public Function RequestRpc(numentries as Integer) As Integer() Dim intarray(numentries - 1) as Integer Dim i as Integer For i = 0 To numentries - 1 intarray(i) = i Next Return intarray End Function End Class
<%@ WebService Language="C#" Class="SoapRpcMethodSample" %> using System.Web.Services; using System.Web.Services.Protocols; public class SoapRpcMethodSample { [WebMethod] [SoapRpcMethod(RequestNamespace="http://www.contoso.com" ,RequestElementName="MyCustomRequestElement")] public int[] RequestRpc(int numentries) { int[] intarray = new int[numentries]; for (int i=0;i<numentries;i++) { intarray[i] = i; } return intarray; } }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SoapRpcMethodAttribute.RequestElementName プロパティのページへのリンク