WebserviceTaskException.NOTSUPPORTED_CODE 欄位

定義

指定當工作遇到不支援的內容時使用的錯誤碼。

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

欄位值

Int32

範例

下列程式碼範例顯示 ComplexProperties Complex 不支援的類型。 NOTSUPPORTED_CODE遇到這種情況時,此範例會擲回。

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

備註

靜態值為101。

適用於