SoapHeaderAttribute.Required プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
<ObsoleteAttribute("This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", False)> _ Public Property Required As Boolean
Dim instance As SoapHeaderAttribute Dim value As Boolean value = instance.Required instance.Required = value
[ObsoleteAttribute("This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", false)] public bool Required { get; set; }
[ObsoleteAttribute(L"This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", false)] public: property bool Required { bool get (); void set (bool value); }
/** @property */ public boolean get_Required () /** @property */ public void set_Required (boolean value)
Boolean 値。
SOAP ヘッダーが XML Web サービスに送信されたことを確認するには、MemberName プロパティに指定されたメンバが null 参照 (Visual Basic では Nothing) かどうかを調べます。null 参照 (Visual Basic では Nothing) の場合、SOAP ヘッダーは送信されていません。
.NET Framework SDK Version 1.0 では、Required プロパティが、受信者である XML Web サービスまたは XML Web サービス クライアントが SOAP ヘッダーを認識して処理する必要があるかどうかを示しています。受信者が SOAP ヘッダーを処理しなかった場合は、例外がスローされました。
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
サポート対象 : 1.0、1.1
2.0 では、互換性のために残されています (コンパイル時に警告)
.NET Compact Framework
サポート対象 : 1.0
2.0 では、互換性のために残されています (コンパイル時に警告)
- SoapHeaderAttribute.Required プロパティのページへのリンク