'Set' 參數必須和包含的屬性具有相同的型別
更新:2007 年 11 月
Set 屬性程序的參數和它所屬的屬性具有不同的型別。
錯誤 ID:BC31064
若要更正這個錯誤
請將參數的資料型別變更為 Set,使其符合屬性的資料型別。例如:
Class Class1 ' Declare a local variable to hold the property value. Private Fval As Integer Property F() As Integer Get Return Fval End Get Set(ByVal Value As Integer) Fval = Value End Set End Property End Class