共用方式為


型別 '<type name>' 沒有名為 '<property name>' 的屬性

錯誤訊息中指示的型別沒有該名稱的屬性 (Property)。 下列範例示範具有未支援資料欄位名稱的型別:

Form1.Aluminum = True
form1.Aluminum = True;

若要更正這個錯誤

  • 請使用該型別支援的屬性 (Property)。 對照上述範例,類似以下的程式碼是正確的:

    Dim mainForm as new Form
    mainForm.AllowDrop= True
    
    Form mainForm = new Form();
    mainForm.AllowDrop= true;
    

請參閱

參考

屬性視窗