Friday, April 27, 2012

Property setting in usercontrol in vb.net


  Public Property DoorNo() As String
        Get
            Return m_DoorNo
        End Get
        Set(ByVal value As String)
            m_DoorNo = value
        End Set
    End Property
    Private m_DoorNo As String = ""
    Public Property DoorName() As String
        Get
            Return m_DoorName
        End Get
        Set(ByVal value As String)
            m_DoorName = value
        End Set
    End Property
    Private m_DoorName As String = ""
    Public Property Facility_Lane_ID() As Int64
        Get
            Return m_Facility_Lane_ID
        End Get
        Set(ByVal value As Int64)
            m_Facility_Lane_ID = value
        End Set
    End Property
    Private m_Facility_Lane_ID As Int64 = -1
    Public Property ySelected() As String
        Get
            Return ddSC.SelectedValue
        End Get
        Set(ByVal value As String)
            ddSC.SelectedValue = value
        End Set
    End Property
    Public Property dddSC() As DropDownList
        Get
            Return m_ddSC
        End Get
        Protected Set(ByVal value As DropDownList)
            m_ddSC = value
        End Set
    End Property
    Private m_ddSC As DropDownList

No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...