I have the following code:
but I am getting this error:Code:Imports System
Imports System.Collections.Generic
Imports System.Drawing
Imports System.Linq
Imports System.Windows.Forms
Imports System.ComponentModel.Composition
Imports System.ComponentModel.Composition.Hosting
Imports Interfaces
Imports System.Text
Namespace DemoPlugInTwo
<Export(GetType(IPlugins))> _
Public Class DemoPlugInTwo
Implements IPlugins
Public Sub createControl(ByRef myPanel As Panel)
Dim myButton As New Button()
myButton.Text = "Click Me!"
AddHandler myButton.Click, AddressOf myButton_Click
myPanel.Controls.Add(myButton)
End Sub
Public Sub myButton_Click(ByVal sender As Object, ByVal e As EventArgs)
MessageBox.Show("Hey Kevin")
End Sub
Public ReadOnly Property name() As String
Get
Return "Demo Plugin Three"
End Get
End Property
Public ReadOnly Property version() As String
Get
Return "Version 5.0"
End Get
End Property
End Class
End Namespace
I am getting similiar errors for the other property and method. I have them set as read only. Any ideas?Quote:
Error 1 Class 'DemoPlugInTwo' must implement 'ReadOnly Property name() As String' for interface 'Interfaces.IPlugins'. Implementing property must have matching 'ReadOnly' or 'WriteOnly' specifiers. C:\Documents and Settings\Owner\My Documents\Visual Studio 2008\Projects\DemoPlugInThree\DemoPlugInThree\DemoPlugInThree.vb 14 20 DemoPlugInThree
