WebserviceTaskException.NOTSUPPORTED_CODE Field

Definition

Specifies the error code used when the task encounters something that is not supported.

public: static initonly int NOTSUPPORTED_CODE;
public static readonly int NOTSUPPORTED_CODE;
 staticval mutable NOTSUPPORTED_CODE : int
Public Shared ReadOnly NOTSUPPORTED_CODE As Integer 

Field Value

Examples

The following code example shows that ComplexProperties of Complex types are not supported. The example throws the NOTSUPPORTED_CODE when this situation is encountered.

if (myComplexValues != null &&  
    myComplexValues.Contains(datatype))  
        {  
            throw new WebserviceTaskException(  
                    WebServiceTaskMessages.DATATYPE_NOT_SUPPORTED,   
                    WebserviceTaskException.NOTSUPPORTED_CODE);  

Remarks

The static value is 101.

Applies to