User Interface Property Example in an Object Library

<DataMember> Public YourPropertyNameString As String = String.Empty
<DisplayName("Full Name"), Category("General"), Viewable, Required)>
    Public Property YourPropertyName As String
        
        Get
            If YourPropertyNameString = String.Empty Then Return Nothing
            Return YourPropertyNameString
        End Get
  
        Set(value As String)
            If value Is Nothing Then YourPropertyNameString= String.Empty Else YourPropertyNameString = value
        End Set

    End Property

Responses

Your email address will not be published. Required fields are marked *