'AddressOf' 無法套用到 'methodname',因為 'methodname' 是部分方法
更新:2007 年 11 月
部分方法已傳遞至 AddressOf 運算子。對 AddressOf 運算子而言,部分方法都是無效值。
錯誤 ID︰BC31440
若要更正這個錯誤
加入部分方法的實作方法。對 AddressOf 運算子而言,實作方法是有效值。下列範例會顯示部分方法簽章與其實作。
' Definition of the partial method signature. Partial Private Sub OnNameChanged() ' The body of the signature is empty. End Sub ' Implementation of the partial method. Private Sub OnNameChanged() MsgBox("Name was changed to " & Me.Name) End Sub