Skip to content
  • Features
  • Business
  • Explore
  • Marketplace
  • Pricing
Sign in or Sign up
  • Watch 195
  • Star 682
  • Fork 1,382

dotnet/docs

Code Issues 312 Pull requests 38 Projects 21 Wiki
Pulse Graphs
Permalink
Switch branches/tags
  • Branches
  • Tags
BreadcrumbTest JRAlexander-patch-1 Petermarcu-patch-1 UpdateOSX apiFilter blackdwarf-patch-1 dev-langs-test dev-langs dfm-latest dfm live mairaw-patch-3-1 mairaw-patch-5 mairaw-patch-6 mairaw-patch-10 mairaw-patch-11 mairaw-patch-13 mairaw-test-build mairaw-test-cli mairaw-test-empty-uid mairaw-test-error-msg markdig master-skip-upload master merge-test migrateNewQueriesCSharpVB migration_csharpvb_reexport migration_csharpvb migration_framework migration_vcppdocs nextdocs nokura-patch-1 ol-dry-run preview project.json rel/netcore-1.0.0 revert-2090-CITest revert-3125-patch-2 runtimePrereqs seopreview split stevewhims-master/fixing-entities testLoc tianzhDevelop tools-index-page v-jacard-patch-1 vscod yishengjin1413-patch-1 ymlExport
Nothing to show
VS2017
Nothing to show
Find file
docs/samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.types.members.properties/vb/example.vb
Fetching contributors…
Cannot retrieve contributors at this time
Raw Blame History
21 lines (18 sloc) 435 Bytes
Option Strict On
' <Snippet1>
Public Class Person
Private m_Age As Integer
Public Property Age As Integer
Get
Return m_Age
End Get
Set
If value < 0 Or value > 125 Then
Throw New ArgumentOutOfRangeException("The value of the Age property must be between 0 and 125.")
Else
m_Age = value
End If
End Set
End Property
End Class
' </Snippet1>
  • Copy lines
  • Copy permalink
  • View git blame
  • Open new issue
  • © 2017 GitHub, Inc.
  • Terms
  • Privacy
  • Security
  • Status
  • Help
  • Contact GitHub
  • API
  • Training
  • Shop
  • Blog
  • About
You can't perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.