By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,696 Members | 1,222 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,696 IT Pros & Developers. It's quick & easy.

Error in implementing interface Property

P: n/a
I receive the following error from the compiler:

ScheduledInfo' must implement 'Property AddrLine1() As String' for
interface 'ICASSBatch'. Implementing property must have matching
'ReadOnly'/'WriteOnly' specifiers.

The interface:
Public Interface ICASSBatch
Property AddrLine1() As String
Property BarCode() As String
Property City() As String
Property State() As String
Property Zip5() As String
...
End Interface

The class implementing the interface:
Public Class ScheduledInfo
Implements ICASSBatch

...
Public Property AddrLine1() As String
Get
Return _addrLine1
End Get
Set(ByVal Value As String)
_addrLine1 = Value
End Set
End Property

I don't understand the error message. Can anyone help?

TIA Lars
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"larzeb" <la****@community.nospam> schrieb:
ScheduledInfo' must implement 'Property AddrLine1() As String' for
interface 'ICASSBatch'. Implementing property must have matching
'ReadOnly'/'WriteOnly' specifiers.

The interface:
Public Interface ICASSBatch
Property AddrLine1() As String
Property BarCode() As String
Property City() As String
Property State() As String
Property Zip5() As String
...
End Interface

The class implementing the interface:
Public Class ScheduledInfo
Implements ICASSBatch

...
Public Property AddrLine1() As String


Replace the line above with 'Public Property AddrLine1() As String
Implements ICASSBatch.AddrLine1'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
In addition to the other responses, if you put the cursor on the end of
the Implements line and press Enter, VS (2003 at least) will
automatically create the method and property stubs.

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.