SoapException.Role 屬性

定義

取得 URI,表示處理 SOAP 訊息的 XML Web Service 的功能。

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

屬性值

擲回 SoapException 之 XML Web Service 的角色。 預設為 Empty

屬性

備註

Role當 SOAP 通訊協定 1.1 版用來與 XML Web 服務通訊時,會忽略 屬性。 使用 SOAP 1.2 時,屬性會在 Rolerole SOAP 訊息的 元素內 fault 設定 專案。

適用於