Condividi tramite


WebserviceTaskException.NOTSUPPORTED_CODE Campo

Definizione

Specifica il codice di errore utilizzato quando durante l'attività si verifica un evento non supportato.

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

Valore del campo

Esempio

Nell'esempio di codice seguente viene illustrato che ComplexProperties i Complex tipi non sono supportati. Nell'esempio viene generato il NOTSUPPORTED_CODE momento in cui viene rilevata questa situazione.

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

Commenti

Il valore statico è 101.

Si applica a