SoapException.Role 屬性

定義

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

C#
[System.Runtime.InteropServices.ComVisible(false)]
public string Role { get; }

屬性值

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

屬性

備註

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

適用於

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1