P
pbd22
Hi. I am caught between 2 errors.
When I have:
Public Property Subtitle() As String
Get
Return _subTitle
End Get
Set(ByVal value As String)
_subTitle = value
End Set
End Property
I get:
Error 21 Class 'WebPartBase' must implement 'ReadOnly Property
Subtitle() As String' for interface
'System.Web.UI.WebControls.WebParts.IWebPart'. Implementing property
must have matching 'ReadOnly' or 'WriteOnly' specifiers.
And, when I have:
Public ReadOnly Property Subtitle() As String
Get
Return _subTitle
End Get
End Property
Public WriteOnly Property Subtitle() As String
Set(ByVal value As String)
_subTitle = Value
End Set
End Property
I get:
Quote:
Error 22 'Public ReadOnly Property Subtitle() As String' and 'Public
WriteOnly Property Subtitle() As String' cannot overload each other
because they differ only by 'ReadOnly' or 'WriteOnly'.
help?
When I have:
Public Property Subtitle() As String
Get
Return _subTitle
End Get
Set(ByVal value As String)
_subTitle = value
End Set
End Property
I get:
Error 21 Class 'WebPartBase' must implement 'ReadOnly Property
Subtitle() As String' for interface
'System.Web.UI.WebControls.WebParts.IWebPart'. Implementing property
must have matching 'ReadOnly' or 'WriteOnly' specifiers.
And, when I have:
Public ReadOnly Property Subtitle() As String
Get
Return _subTitle
End Get
End Property
Public WriteOnly Property Subtitle() As String
Set(ByVal value As String)
_subTitle = Value
End Set
End Property
I get:
Quote:
Error 22 'Public ReadOnly Property Subtitle() As String' and 'Public
WriteOnly Property Subtitle() As String' cannot overload each other
because they differ only by 'ReadOnly' or 'WriteOnly'.
help?