接口VB.NET中的读写属性

我想编写一个接口类并像这样使用它
public Interface IFunction
  property name as string
end interface

public class ModelFunction
   implements IFunction

  public property name as string

  public sub new()

end class

*编辑(删除后面的句子为noob,感谢@damien_the_unbeliever指出这一点):但这是不可能得到的,因为vb.net接口中的属性必须是只读或只写(据我所知)*

我现在写了这个,但似乎有点不对劲:

public Interface IFunction
  Readlonly property getName() as string
  writeonly property writeName() as string
end interface

public class ModelFunction
 implements IFunction

 ....
end class

有人有更好的解决方案吗?或者可以帮助我使用Interface类中的属性.已经在stackoverflow上阅读了一些文章,但没有一篇指出我正确的方向.

这对我来说很好:
Public Class Class1
    Implements Thing

    Property Gary As Int32 Implements Thing.Gary
        Get
            Return 10
        End Get
        Set(value As Int32)

        End Set
    End Property
End Class

Public Interface Thing
    Property Gary As Int32
End Interface

Interface的文档页面上甚至有一个例子:

Interface IAsset
    Event ComittedChange(ByVal Success As Boolean)
    Property Division() As String 
    Function GetID() As Integer 
End Interface

相关文章

Format[$] ( expr [ , fmt ] ) format 返回变体型 format$ 强...
VB6或者ASP 格式化时间为 MM/dd/yyyy 格式,竟然没有好的办...
在项目中添加如下代码:新建窗口来显示异常信息。 Namespace...
转了这一篇文章,原来一直想用C#做k3的插件开发,vb没有C#用...
Sub 分列() ‘以空格为分隔符,连续空格只算1个。对所选...
  窗体代码 1 Private Sub Text1_OLEDragDrop(Data As Dat...