Linguaggio

WebserviceTaskException.NOTSUPPORTED_CODE Campo

Definizione

Specifica il codice di errore usato quando il task incontra qualcosa che 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

Il seguente esempio di codice mostra che ComplexProperties i tipi Complex non sono supportati. L'esempio mostra quando NOTSUPPORTED_CODE si verifica 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