SoapException.Role 屬性

定義

會取得一個 URI,代表 XML Web 服務在處理 SOAP 訊息時的功能。

public:
 property System::String ^ Role { System::String ^ get(); };
[System.Runtime.InteropServices.ComVisible(false)]
public string Role { get; }
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.Role : string
Public ReadOnly Property Role As String

屬性值

XML 網路服務 SoapException的角色 預設值為 Empty

屬性

備註

當使用 SOAP 協定 1.1 版本與 XML Web 服務通訊時,該 Role 特性會被忽略。 當使用 SOAP 1.2 時,屬性 Role 會設定 role SOAP 訊息中元素 fault 中的元素。

適用於