Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SoapException.Role Property

Gets a URI that represents the XML Web service's function in processing the SOAP message.

Namespace:  System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

[ComVisibleAttribute(false)]
public string Role { get; }

Property Value

Type: System.String
The role of the XML Web service throwing the SoapException. The default is Empty.

The Role property is ignored when the SOAP protocol version 1.1 is used to communicate with an XML Web service. When SOAP 1.2 is used, the Role property sets the role element within a fault element of a SOAP message.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft