次の方法で共有


SoapHeaderAttribute.Required プロパティ

メモ : このメンバは旧バージョン用です。

このプロパティは、将来のバージョンでは削除されます。SOAP メッセージに特定のヘッダーが存在する必要はなくなりました。

これは今後使用しないメンバであり、機能は提供されません。

<Obsolete("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
[C#]
[Obsolete("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;}
[C++]
[Obsolete("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 get_Required();public: __property void set_Required(bool);
[JScript]
public
   Obsolete("This property will be removed from a future version. The
   presence of a particular header in a SOAP message is no longer
   enforced", false)
function get Required() : Boolean;public function set Required(Boolean);

解説

SOAP ヘッダーが XML Web サービスに送信されたことを確認するには、 MemberName プロパティに指定されたメンバが null 参照 (Visual Basic では Nothing) かどうかを調べます。 null 参照 (Nothing) の場合、SOAP ヘッダーは送信されていません。

.NET Framework SDK Version 1.0 では、 Required プロパティが、受信者である XML Web サービスまたは XML Web サービス クライアントが SOAP ヘッダーを認識して処理する必要があるかどうかを示しています。受信者が SOAP ヘッダーを処理しなかった場合は、例外がスローされました。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

SoapHeaderAttribute クラス | SoapHeaderAttribute メンバ | System.Web.Services.Protocols 名前空間