????? ????? ??????? ??????? ?? Visual Basic .NET ?? ?? Visual Basic 2005

?????? ????????? ?????? ?????????
???? ???????: 308230 - ??? ???????? ???? ????? ????? ??? ???????.
?????? ??? ????? Microsoft Visual C# .NET ?? ??? ???????? ???? 319265.
????? ???? | ?? ????

?? ??? ??????

??????

??? ???? ?????? ?? ?????? ?? ???? ??????? ????? ?? ?????? ?? ?????? ?????? ????? ?? ???. ???? .NET Visual Basic ?? Visual Basic 2005 ????? ????? ?????? ??????? ??? ?????? ????? ?? ???. ???? ??? ??????? ??? ????? ????? ???????? ??????? ?? ????? Visual Basic .NET ?? 2005 Visual Basic.

???? ?? ???? ????? ??????? ??? ?? ??????? ??? ?? ??????? ????????. ????? ????? ??????? ???? ?????? ??? ?? ?????? ??????? ????? ????? ??????? ???? ????? ?? ?????? ???????. ????? ????? ??? ??? ??? accessors ?????? ????? ???????? ????? ?? ????? ???????.

?? ??? ??????? ?????? ??? ???? ??????. ??? ??? ????? ????? ????? ??????? - ??????? ?? ??? ?????? ????? ????? ???? ?????? ? ????? ????? ??? ????? ?????? ??????. ????? ????? ???? ?????? ?? ??????? ????? ?? ?? ??????? ??????? ?????? ??.

???????

???? ??????? ??????? ??????? ?????? ??? ????? ?????? ???????? ?????? ? ??? ??????? ????????:
  • Microsoft Visual Studio .NET ?? Microsoft Visual Studio 2005
????? ??? ??????? ??? ??????? ??? ???????? ???????:
  • ???? ???? Visual Basic .NET ?? Visual Basic 2005
  • ?????? ?????

????? ????? ???? ????? ??? Visual Basic .NET ?? ??? 2005 Visual Basic

  1. ?? ?????? Visual Studio .NET ?? Visual Studio 2005 ?? ????? ????? ???? ?????? 2005 Visual Basic "??" Visual Basic .NET ????? ???? ???? EmployeeProperties.
  2. ?? ??????? ??????? ???? ??? ????? ???. ?? ???? ?????? ????? ???? ???? ???? Employee.vb ?? ???? ???? ????? ?? ???? ??? ???.

    ?????? ?? Visual Studio 2005 ? ???? ??? ????? ????? ?? ???.
  3. ??? ????? ????? ??????? ?? ???? "??? ???".

????? ???? ????????? ??????

  1. ????? ????? ???? ???? ??? ??? ?????? ??? ???:
    Private Name As String
    Private Salary As Decimal
    Private HireDate As DateTime
    					
  2. ????? ????? ????? ????? ?????? ???????? ?? ????? ?????? ??? ???:
    Public Sub New(ByVal Name As String, _
                   ByVal Salary As Decimal, _
                   ByVal HireDate As DateTime)
       Me.Name = Name
       Me.Salary = Salary
       Me.HireDate = HireDate
    End Sub
    					
  3. ??? ????? ????? ??? ????? ? ??? ???:
    Public Sub PayRise(ByVal Amount As Decimal)
       Me.Salary += Amount
    End Sub
    					

????? ????? ?? ???

  1. ?? ?????? ???????? ???????? ??????? ?????? ????? ??????? ???????? ?????? FullName. ????? ???? ?????? "????? ??? ??????. ?????? ????? ??????? ?????? ????? ??????? ?????? ???? ??? ??????? ??? ????? ??????? ?????? ????? ????? ??? ??????.
    Public Property FullName() As String
       Get
          Return Me.Name
       End Get
       Set(ByVal Value As String)
          Me.Name = Value
       End Set
    End Property
    					
  2. ?? ?????? ???????? ???????? ??????? ?????? ????? ??????? ??? ???? Remuneration. ????? ??????? ?????? ????? ????? ???? ??????. ?? ???? ????? ??????? ?????? ????? ???? ???? ?? ???? ????? ???? ??????; ??????? ??????? ?????? ???? ?? ??????? ??????? PayRise.
    Public ReadOnly Property Remuneration() As Decimal
       Get
          Return Me.Salary
       End Get
    End Property
    					
  3. ?? ?????? ???????? ???????? ??????? ?????? ????? ??? ??????? ??? ???? DaysSinceJoined. ????? ??????? ?????? ????? ????? ??? ?????? ????? ?????? ??????.
    Public ReadOnly Property DaysSinceJoined() As Integer
       Get
          Dim timespan As TimeSpan = DateTime.Now.Subtract(Me.HireDate)
          return timespan.Days
       End Get
    End Property
    					

????? ??? ?????? "?????" ??????????

  1. ??? ????????? ???????? Module1.vb ?? ???? "??? ???".
  2. ?? ??????? ??????? ?????? ???? ????? ???? ?????? ???? ??????. ????? ???? ?????? ??? ????? ?????? ???? ??? ???:
    Dim worker As New Employee( "Jayne Doe", _
                                 125000, _
                                 New DateTime(1998, 7, 31) )
    					
  3. ?? ?????? ???????? ???????? ??????? ?????? ??????? FullName ??????. ??? ??????? ????? ??????? ???? ????? ??????? FullName ??????.
    worker.FullName = "Jayne Lafayette"
    					
  4. ?? ?????? ????????? ???????? ??????? ???? ???????? ?? ?????? ???????? accessors ????? ????? FullName ? RemunerationDaysSinceJoined:
    Console.WriteLine("Full name: " & worker.FullName)
    Console.WriteLine("Remuneration: " & worker.Remuneration)
    Console.WriteLine("Days since joined: " & worker.DaysSinceJoined)
    					

?????? ???????

  1. ?????? ??????? ???????.
  2. ???? ??????? ????????? ??????? ?? ???? ?????? (????? ?????? "???? ??? ??????" ??? ??????? ??????):
    Full name: Jayne Lafayette
    Remuneration: 125000
    Days since joined: 1139
    						
  3. ?????? ??? ??? Module1.vb ?? ???? "??? ???" ?????? ???????? ???????? ??????? ?? ????? ??????? ???????:
    worker.Remuneration = 1000000
    					
  4. ???? ????? ???????. ???? ??? ?? ??????? ??????? ??? Remuneration ????? ??????? ???.
  5. ????? ??????? ??? ???:
    worker.Salary = 1000000
    					
  6. ???? ????? ??????? ??? ????. ???? ??? ??????? ??????? ??? ??? ????? Salary ?? ??? ????? ???. ??????? ??????? ?????? ???? ?????? ?? ??????? ????? ??? PayRise.

???????

???? ???????: 308230 - ????? ??? ??????: 15/?? ??????/1427 - ??????: 3.3
????? ???
  • Microsoft Visual Basic 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
????? ??????: 
kbmt kbvs2005applies kbvs2005swept kbhowtomaster KB308230 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????308230

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com