{"id":64355,"date":"2022-06-22T04:06:24","date_gmt":"2022-06-22T04:06:24","guid":{"rendered":"https:\/\/itsourcecode.com\/?p=64355"},"modified":"2023-11-21T03:18:17","modified_gmt":"2023-11-21T03:18:17","slug":"access-modifiers-in-vb-net","status":"publish","type":"post","link":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/","title":{"rendered":"Access Modifiers in VB.net with Example &#8211; List of Access Modifiers"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-what-is-access-modifiers-in-vb-net\"><strong>What is Access Modifiers in VB.net?<\/strong><\/h2>\n\n\n\n<p><strong>Access Modifiers in VB.net<\/strong> are the keywords, and those are useful to define an accessibility level for all the types and type members. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Access modifiers can control whether they can be accessed in other classes or current assembly or other assemblies based on your requirements.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-list-of-access-modifiers-in-vb-net\"><strong>List of Access Modifiers in VB.net<\/strong><\/h2>\n\n\n\n<p>The keywords that specify access level are called access modifiers.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th class=\"has-text-align-center\" data-align=\"center\">Access Modifiers in VB.net<\/th><th class=\"has-text-align-center\" data-align=\"center\">Description<\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\">Public<\/td><td class=\"has-text-align-center\" data-align=\"center\">Any code that can see a public element can access it.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Protected<\/td><td class=\"has-text-align-center\" data-align=\"center\">Code in the class that declares a protected element, or a class derived from it, can access the element.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Friend<\/td><td class=\"has-text-align-center\" data-align=\"center\">Code in the assembly that declares a friend element can access it.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Protected Friend<\/td><td class=\"has-text-align-center\" data-align=\"center\">Code in the same class or the same assembly as a protected friend element, or within any class derived from the element&#8217;s class, can access it.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Private<\/td><td class=\"has-text-align-center\" data-align=\"center\">Code in the type that declares a private element, including code within contained types, can access the element.<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Private Protected<\/td><td class=\"has-text-align-center\" data-align=\"center\">Code in the class that declares a private protected element, or code in a derived class found in the same assembly as the base class.<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>VB.net Access Modifiers<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-public\"><strong>Public<\/strong><\/h3>\n\n\n\n<p>The <strong>Public keyword<\/strong> in the declaration statement specifies that the element can be accessed from code anywhere in the same project, from other projects that reference the project, and from any assembly built from the project.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The following code shows a simple <strong><em>Public declaration<\/em><\/strong> of <strong>Access Modifiers in VB.net<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Public Class Customer\n    Public Property Id As Integer\n    Public Property Name As String\n    Public Property Address As String\n\n    Public Sub New()\n    End Sub\n\n    Public Sub New(ByVal id As Integer, ByVal name As String, ByVal address As String)\n        Me.Id = id\n        Me.Name = name\n        Me.Address = address\n    End Sub\n\n    Public Sub Print()\n        Console.WriteLine(\"Id: {0}, Name: {1}, Address: {2}\", Me.Id, Me.Name, Me.Address)\n    End Sub\nEnd Class<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can use Public only at module, interface, or namespace level.<\/li>\n\n\n\n<li>You can declare a public element at the level of a source file or <strong>namespace<\/strong>, or inside an <strong><em>interface<\/em><\/strong>, <strong><em>module<\/em><\/strong>, <strong><em>class<\/em><\/strong>, or <strong><em>structure<\/em><\/strong>, but not in a procedure.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-protected\"><strong>Protected<\/strong><\/h3>\n\n\n\n<p>The <strong>Protected keyword<\/strong> in the declaration statement specifies that the element can be accessed only from within the same class, or from a class derived from this class.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The following code shows a simple <strong><em>Protected declaration<\/em><\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Public Class Customer\n    Protected Property Id As Integer\n    Protected Property Name As String\n    Protected Property Address As String\n\n    Public Sub New()\n    End Sub\n\n    Public Sub New(ByVal id As Integer, ByVal name As String, ByVal address As String)\n        Me.Id = id\n        Me.Name = name\n        Me.Address = address\n    End Sub\n\n    Protected Sub Print()\n        Console.WriteLine(\"Id: {0}, Name: {1}, Address: {2}\", Me.Id, Me.Name, Me.Address)\n    End Sub\nEnd Class<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>In the above example, you can see that a Customer class is defined with the required variables and methods using the <strong>Protected access modifier<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can use Protected only at class level, and only when you declare a member of a class.<\/li>\n\n\n\n<li>You can declare a protected element in a class, but not at the level of a source file or <strong>namespace<\/strong>, or inside an <strong><em>interface<\/em><\/strong>, <strong><em>module<\/em><\/strong>, <strong><em>structure<\/em><\/strong>, or <strong><em>procedure<\/em><\/strong>.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-friend\"><strong>Friend<\/strong><\/h3>\n\n\n\n<p>The <strong>Friend keyword<\/strong> in the declaration statement specifies that the element can be accessed from within the same assembly, but not from outside the assembly.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The following code shows a simple <strong><em>Friend declaration<\/em><\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Public Class Customer\n    Friend Property Id As Integer\n    Friend Property Name As String\n    Friend Property Address As String\n\n    Public Sub New()\n    End Sub\n\n    Public Sub New(ByVal id As Integer, ByVal name As String, ByVal address As String)\n        Me.Id = id\n        Me.Name = name\n        Me.Address = address\n    End Sub\n\n    Friend Sub Print()\n        Console.WriteLine(\"Id: {0}, Name: {1}, Address: {2}\", Me.Id, Me.Name, Me.Address)\n    End Sub\nEnd Class<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can use <strong>Friend<\/strong> only at the <strong><em>module<\/em><\/strong>, <strong><em>interface<\/em><\/strong>, or <strong><em>namespace level<\/em><\/strong>.<\/li>\n\n\n\n<li>You can declare a <strong>friend element<\/strong> at the level of a source file or <strong>namespace<\/strong>, or inside an <strong><em>interface<\/em><\/strong>, <strong><em>module<\/em><\/strong>, <strong><em>class<\/em><\/strong>, or <strong><em>structure<\/em><\/strong>, but not in a procedure.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-protected-friend\"><strong>Protected Friend<\/strong><\/h3>\n\n\n\n<p>The <strong>Protected Friend keyword<\/strong> combination in the declaration statement specifies that the element can be accessed either from derived classes from within the same assembly, or both.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The following code shows a simple <strong><em>Protected Friend declaration<\/em><\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Public Class Customer\n    Protected Friend Property Id As Integer\n    Protected Friend Property Name As String\n    Protected Friend Property Address As String\n\n    Public Sub New()\n    End Sub\n\n    Public Sub New(ByVal id As Integer, ByVal name As String, ByVal address As String)\n        Me.Id = id\n        Me.Name = name\n        Me.Address = address\n    End Sub\n\n    Protected Friend Sub Print()\n        Console.WriteLine(\"Id: {0}, Name: {1}, Address: {2}\", Me.Id, Me.Name, Me.Address)\n    End Sub\nEnd Class<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can use <strong>Protected Friend<\/strong> only at class level, and only when you declare a <strong>member of a class<\/strong>.<\/li>\n\n\n\n<li>You can declare a <strong>protected friend element<\/strong> in a class, but not at the level of a source file or <strong>namespace<\/strong>, or inside an <strong><em>interface<\/em><\/strong>, <strong><em>module<\/em><\/strong>, <strong><em>structure<\/em><\/strong>, or <strong><em>procedure<\/em><\/strong>.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-private\"><strong>Private<\/strong><\/h3>\n\n\n\n<p>The <strong>Private keyword<\/strong> in the declaration statement specifies that the element can be accessed only from within the same <strong><em>module<\/em><\/strong>, <strong><em>class<\/em><\/strong>, or <strong><em>structure<\/em><\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The following code shows a simple <strong><em>Private declaration<\/em><\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Public Class Customer\n    Private Property Id As Integer\n    Private Property Name As String\n    Private Property Address As String\n\n    Public Sub New()\n    End Sub\n\n    Public Sub New(ByVal id As Integer, ByVal name As String, ByVal address As String)\n        Me.Id = id\n        Me.Name = name\n        Me.Address = address\n    End Sub\n\n    Public Sub Print()\n        Console.WriteLine(\"Id: {0}, Name: {1}, Address: {2}\", Me.Id, Me.Name, Me.Address)\n    End Sub\nEnd Class<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>You can use <strong>Private<\/strong> only at the module level. IT means you can declare a private element inside a <strong><em>module<\/em><\/strong>, <strong><em>class<\/em><\/strong>, or <strong><em>structure<\/em><\/strong>, but not at the level of a source file or <strong><em>namespace<\/em><\/strong>, inside an <strong><em>interface<\/em><\/strong>, or in a <strong><em>procedure<\/em><\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>At the module level, the Dim statement without any access level keywords is equivalent to a <strong>Private declaration<\/strong>.<\/li>\n\n\n\n<li>However, you might want to use the <strong>Private keyword<\/strong> to make your code easier to read and interpret.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-private-protected\"><strong>Private Protected<\/strong><\/h3>\n\n\n\n<p>The <strong>Private Protected keyword<\/strong> combination in the declaration statement specifies that the element can be accessed only from within the same class, as well as from derived classes found in the same assembly as the containing class.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The <strong>Private Protected<\/strong> access modifier is supported starting with Visual Basic 15.5. <\/p>\n\n\n\n<p>The following example shows a <strong><em>Private Protected declaration<\/em><\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Public Class Customer\n    Private Protected Property Id As Integer\n    Private Protected Property Name As String\n    Private Protected Property Address As String\n\n    Public Sub New()\n    End Sub\n\n    Public Sub New(ByVal id As Integer, ByVal name As String, ByVal address As String)\n        Me.Id = id\n        Me.Name = name\n        Me.Address = address\n    End Sub\n\n    Public Sub Print()\n        Console.WriteLine(\"Id: {0}, Name: {1}, Address: {2}\", Me.Id, Me.Name, Me.Address)\n    End Sub\nEnd Class<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can declare a <strong>Private Protected<\/strong> element only inside of a class.<\/li>\n\n\n\n<li>You cannot declare it within an interface or structure, nor can you declare it at the level of a source file or <strong><em>namespace<\/em><\/strong>, inside an<strong><em> interface<\/em><\/strong> or a <strong><em>structure<\/em><\/strong>, or in a <strong><em>procedure<\/em><\/strong>.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-list-of-available-modifiers-in-vb-net\"><strong>List of Available Modifiers in VB.net<\/strong><\/h2>\n\n\n\n<p>The following table provides the complete list of <strong><strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/dotnet\/visual-basic\/\">VB.net<\/a><\/strong> modifiers<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><th>Sr.No<\/th><th class=\"has-text-align-center\" data-align=\"center\">Modifiers in VB.net<\/th><th class=\"has-text-align-center\" data-align=\"center\">Description<\/th><\/tr><tr><td>1.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Ansi<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that Visual Basic should marshal all strings to American National Standards Institute (ANSI) values regardless of the name of the external procedure being declared.<\/td><\/tr><tr><td>2.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Assembly<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that an attribute at the beginning of a source file applies to the entire assembly.<\/td><\/tr><tr><td>3.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Async<\/td><td class=\"has-text-align-center\" data-align=\"center\">Indicates that the method or lambda expression that it modifies is asynchronous. Such methods are referred to as async methods. The caller of an async method can resume its work without waiting for the async method to finish.<\/td><\/tr><tr><td>4.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Auto<\/td><td class=\"has-text-align-center\" data-align=\"center\">The&nbsp;<em>charsetmodifier<\/em>&nbsp;part in the Declare statement supplies the character set information for marshaling strings during a call to the external procedure. It also affects how Visual Basic searches the external file for the external procedure name. The Auto modifier specifies that Visual Basic should marshal strings according to .NET Framework rules.<\/td><\/tr><tr><td>5.<\/td><td class=\"has-text-align-center\" data-align=\"center\">ByRef<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that an argument is passed by reference, i.e., the called procedure can change the value of a variable underlying the argument in the calling code. It is used under the contexts of :<br><br>&#8211; <strong><em>Declare Statement<br>&#8211; Function Statement<br>&#8211; Sub Statement<\/em><\/strong><\/td><\/tr><tr><td>6.<\/td><td class=\"has-text-align-center\" data-align=\"center\">ByVal<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the calling code. It is used under the contexts of:<br><br><strong><em>&#8211; Declare Statement<br>&#8211; Function Statement<br>&#8211; Operator Statement<br>&#8211; Property Statement<br>&#8211; Sub Statement<\/em><\/strong><\/td><\/tr><tr><td>7.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Default<\/td><td class=\"has-text-align-center\" data-align=\"center\">Identifies a property as the default property of its class, structure, or interface.<\/td><\/tr><tr><td>8.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Friend<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that one or more declared programming elements are accessible from within the assembly that contains their declaration, not only by the component that declares them.Friend access is often the preferred level for an application&#8217;s programming elements, and Friend is the default access level of an interface, a module, a class, or a structure.<\/td><\/tr><tr><td>9.<\/td><td class=\"has-text-align-center\" data-align=\"center\">In<\/td><td class=\"has-text-align-center\" data-align=\"center\">It is used in generic interfaces and delegates.<\/td><\/tr><tr><td>10.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Iterator<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a function or Get accessor is an iterator. An iterator performs a custom iteration over a collection.<\/td><\/tr><tr><td>11.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Key<\/td><td class=\"has-text-align-center\" data-align=\"center\">The Key keyword enables you to specify behavior for properties of anonymous types.<\/td><\/tr><tr><td>12.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Module<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that an attribute at the beginning of a source file applies to the current assembly module. It is not same as the Module statement.<\/td><\/tr><tr><td>13.<\/td><td class=\"has-text-align-center\" data-align=\"center\">MustInherit<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a class can be used only as a base class and that you cannot create an object directly from it.<\/td><\/tr><tr><td>14.<\/td><td class=\"has-text-align-center\" data-align=\"center\">MustOverride<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a property or procedure is not implemented in this class and must be overridden in a derived class before it can be used.<\/td><\/tr><tr><td>15.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Narrowing<\/td><td class=\"has-text-align-center\" data-align=\"center\">Indicates that a conversion operator (CType) converts a class or structure to a type that might not be able to hold some of the possible values of the original class or structure.<\/td><\/tr><tr><td>16.<\/td><td class=\"has-text-align-center\" data-align=\"center\">NotInheritable<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a class cannot be used as a base class.<\/td><\/tr><tr><td>17.<\/td><td class=\"has-text-align-center\" data-align=\"center\">NotOverridable<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a property or procedure cannot be overridden in a derived class.<\/td><\/tr><tr><td>18.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Optional<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a procedure argument can be omitted when the procedure is called.<\/td><\/tr><tr><td>19.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Out<\/td><td class=\"has-text-align-center\" data-align=\"center\">For generic type parameters, the Out keyword specifies that the type is covariant.<\/td><\/tr><tr><td>20.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Overloads<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a property or procedure redeclares one or more existing properties or procedures with the same name.<\/td><\/tr><tr><td>21.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Overridable<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a property or procedure can be overridden by an identically named property or procedure in a derived class.<\/td><\/tr><tr><td>22.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Overrides<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a property or procedure overrides an identically named property or procedure inherited from a base class.<\/td><\/tr><tr><td>23.<\/td><td class=\"has-text-align-center\" data-align=\"center\">ParamArray<\/td><td class=\"has-text-align-center\" data-align=\"center\">ParamArray allows you to pass an arbitrary number of arguments to the procedure. A ParamArray parameter is always declared using ByVal.<\/td><\/tr><tr><td>24.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Partial<\/td><td class=\"has-text-align-center\" data-align=\"center\">Indicates that a class or structure declaration is a partial definition of the class or structure.<\/td><\/tr><tr><td>25.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Private<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that one or more declared programming elements are accessible only from within their declaration context, including from within any contained types.<\/td><\/tr><tr><td>26.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Protected<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that one or more declared programming elements are accessible only from within their own class or from a derived class.<\/td><\/tr><tr><td>27.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Public<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that one or more declared programming elements have no access restrictions.<\/td><\/tr><tr><td>28.<\/td><td class=\"has-text-align-center\" data-align=\"center\">ReadOnly<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a variable or property can be read but not written.<\/td><\/tr><tr><td>29.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Shadows<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a declared programming element redeclares and hides an identically named element, or set of overloaded elements, in a base class.<\/td><\/tr><tr><td>30.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Shared<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that one or more declared programming elements are associated with a class or structure at large, and not with a specific instance of the class or structure.<\/td><\/tr><tr><td>31.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Static<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that one or more declared local variables are to continue to exist and retain their latest values after termination of the procedure in which they are declared.<\/td><\/tr><tr><td>32.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Unicode<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that Visual Basic should marshal all strings to Unicode values regardless of the name of the external procedure being declared.<\/td><\/tr><tr><td>33.<\/td><td class=\"has-text-align-center\" data-align=\"center\">Widening<\/td><td class=\"has-text-align-center\" data-align=\"center\">Indicates that a conversion operator (CType) converts a class or structure to a type that can hold all possible values of the original class or structure.<\/td><\/tr><tr><td>34.<\/td><td class=\"has-text-align-center\" data-align=\"center\">WithEvents<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that one or more declared member variables refer to an instance of a class that can raise events.<\/td><\/tr><tr><td>35.<\/td><td class=\"has-text-align-center\" data-align=\"center\">WriteOnly<\/td><td class=\"has-text-align-center\" data-align=\"center\">Specifies that a property can be written but not read.<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>List of Available Modifiers in VB.net<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-summary\"><strong>Summary<\/strong><\/h2>\n\n\n\n<p>One of the most confusing aspects of OOP is determining the proper access modifier to use for classes and class data members and methods. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If you provide too much scope for a data member or method, you risk violating data encapsulation, leading to unwanted data access. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>If your scope is too restrictive, other classes that need access to a class&#8217;s data or methods won&#8217;t be able to access them. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>In this chapter we discuss the different access modifiers, how they are used to manage class members and method scoping, and when to use each modifier. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>At the end of the chapter, we discuss how these access modifiers work with the classes themselves.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-columns is-not-stacked-on-mobile tw-mb-0 tw-mt-0 tw-gutter-large tw-stretched-link is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"tw-mt-0 tw-mb-0\" style=\"font-size:22px;font-style:normal;font-weight:600\"><strong>PREVIOUS<\/strong><\/p>\n\n\n\n<div class=\"wp-block-cover tw-mt-0 tw-mb-0 is-style-tw-rounded-corners tw-stretched-link tw-hover-show-text tw-ratio-16-9\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-70 has-background-dim\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"900\" class=\"wp-block-cover__image-background wp-image-64282\" alt=\"VB NET Constants\" src=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Constants.png\" style=\"object-position:50% 50%\" data-object-fit=\"cover\" data-object-position=\"50% 50%\" srcset=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Constants.png 1460w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Constants-300x185.png 300w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Constants-1024x631.png 1024w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Constants-768x473.png 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<p class=\"has-text-align-center tw-mt-0 tw-mb-0 has-base-3-color has-text-color\" style=\"font-size:30px\"><a href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-constants\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-base-3-color\">Constants<\/mark><\/a><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-right tw-mt-0 tw-mb-0\" style=\"font-size:22px;font-style:normal;font-weight:600\"><strong>NEXT <\/strong><\/p>\n\n\n\n<div class=\"wp-block-cover tw-mt-0 tw-mb-0 is-style-tw-rounded-corners tw-stretched-link tw-hover-show-text tw-ratio-16-9\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-70 has-background-dim\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"900\" class=\"wp-block-cover__image-background wp-image-64596\" alt=\"Control Statements in VB NET\" src=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Control-Statements-in-VB-NET.png\" data-object-fit=\"cover\" srcset=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Control-Statements-in-VB-NET.png 1460w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Control-Statements-in-VB-NET-300x185.png 300w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Control-Statements-in-VB-NET-1024x631.png 1024w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Control-Statements-in-VB-NET-768x473.png 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<p class=\"has-text-align-center tw-mt-0 tw-mb-0 has-base-3-color has-text-color\" style=\"font-size:30px\"><strong><a href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/control-statements-in-vb-net\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-base-3-color\">Statements<\/mark><\/a><\/strong><\/p>\n<\/div><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>What is Access Modifiers in VB.net? Access Modifiers in VB.net are the keywords, and those are useful to define an accessibility level for all the types and type members. Access &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Access Modifiers in VB.net with Example &#8211; List of Access Modifiers\" class=\"read-more button\" href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#more-64355\" aria-label=\"Read more about Access Modifiers in VB.net with Example &#8211; List of Access Modifiers\">Read more<\/a><\/p>\n","protected":false},"author":1767,"featured_media":64416,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[80012,80014,80016,80015,80013],"class_list":["post-64355","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-basic-tutorial","tag-access-modifiers-in-vb-net","tag-access-modifiers-in-vb-net-with-example","tag-access-specifiers-in-vb-net","tag-access-specifiers-in-vb-net-with-examples","tag-how-many-access-modifiers-in-java","resize-featured-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Access Modifiers in VB.net with Example - List of Access Modifiers<\/title>\n<meta name=\"description\" content=\"The Access Modifiers in VB.net are the keywords, and those are useful to define an accessibility level for all the types and type members.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Access Modifiers in VB.net with Example - List of Access Modifiers\" \/>\n<meta property=\"og:description\" content=\"The Access Modifiers in VB.net are the keywords, and those are useful to define an accessibility level for all the types and type members.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/\" \/>\n<meta property=\"og:site_name\" content=\"Itsourcecode.com\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-22T04:06:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-21T03:18:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Access-Modifiers-in-VB.net-with-Example.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"angel jude suarez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"angel jude suarez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/\"},\"author\":{\"name\":\"angel jude suarez\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/dafb6a91b43e60537c56e3e1d227d460\"},\"headline\":\"Access Modifiers in VB.net with Example &#8211; List of Access Modifiers\",\"datePublished\":\"2022-06-22T04:06:24+00:00\",\"dateModified\":\"2023-11-21T03:18:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/\"},\"wordCount\":1766,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Access-Modifiers-in-VB.net-with-Example.png\",\"keywords\":[\"access modifiers in vb.net\",\"access modifiers in vb.net with example\",\"access specifiers in vb.net\",\"access specifiers in vb.net with examples\",\"how many access modifiers in java\"],\"articleSection\":[\"VB.NET Tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/\",\"name\":\"Access Modifiers in VB.net with Example - List of Access Modifiers\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Access-Modifiers-in-VB.net-with-Example.png\",\"datePublished\":\"2022-06-22T04:06:24+00:00\",\"dateModified\":\"2023-11-21T03:18:17+00:00\",\"description\":\"The Access Modifiers in VB.net are the keywords, and those are useful to define an accessibility level for all the types and type members.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#primaryimage\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Access-Modifiers-in-VB.net-with-Example.png\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/Access-Modifiers-in-VB.net-with-Example.png\",\"width\":1460,\"height\":900,\"caption\":\"Access Modifiers in VB.net with Example\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/access-modifiers-in-vb-net\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/itsourcecode.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Access Modifiers in VB.net with Example &#8211; List of Access Modifiers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/\",\"name\":\"Itsourcecode.com\",\"description\":\"Partner In Your Coding Journey!\",\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/itsourcecode.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\",\"name\":\"itsourcecode\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"width\":409,\"height\":409,\"caption\":\"itsourcecode\"},\"logo\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\"},\"description\":\"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!\",\"sameAs\":[\"https:\\\/\\\/itsourcecode.com\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/dafb6a91b43e60537c56e3e1d227d460\",\"name\":\"angel jude suarez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718\",\"caption\":\"angel jude suarez\"},\"description\":\"Hello programmers, I'm Angel Jude Reyes Suarez, a student and a programmer of different programming languages like Python, Java, JavaScript, PHP, C, C++, Vb.net, and MySQL. and I have also knowledge in developing system or websites from Front-End to Back-End. and also a writer of itsourcecode.com.\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/author\\\/angeljudesuarez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Access Modifiers in VB.net with Example - List of Access Modifiers","description":"The Access Modifiers in VB.net are the keywords, and those are useful to define an accessibility level for all the types and type members.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/","og_locale":"en_US","og_type":"article","og_title":"Access Modifiers in VB.net with Example - List of Access Modifiers","og_description":"The Access Modifiers in VB.net are the keywords, and those are useful to define an accessibility level for all the types and type members.","og_url":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/","og_site_name":"Itsourcecode.com","article_published_time":"2022-06-22T04:06:24+00:00","article_modified_time":"2023-11-21T03:18:17+00:00","og_image":[{"width":1460,"height":900,"url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Access-Modifiers-in-VB.net-with-Example.png","type":"image\/png"}],"author":"angel jude suarez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"angel jude suarez","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#article","isPartOf":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/"},"author":{"name":"angel jude suarez","@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/dafb6a91b43e60537c56e3e1d227d460"},"headline":"Access Modifiers in VB.net with Example &#8211; List of Access Modifiers","datePublished":"2022-06-22T04:06:24+00:00","dateModified":"2023-11-21T03:18:17+00:00","mainEntityOfPage":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/"},"wordCount":1766,"commentCount":0,"publisher":{"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc"},"image":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#primaryimage"},"thumbnailUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Access-Modifiers-in-VB.net-with-Example.png","keywords":["access modifiers in vb.net","access modifiers in vb.net with example","access specifiers in vb.net","access specifiers in vb.net with examples","how many access modifiers in java"],"articleSection":["VB.NET Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/","url":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/","name":"Access Modifiers in VB.net with Example - List of Access Modifiers","isPartOf":{"@id":"https:\/\/itsourcecode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#primaryimage"},"image":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#primaryimage"},"thumbnailUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Access-Modifiers-in-VB.net-with-Example.png","datePublished":"2022-06-22T04:06:24+00:00","dateModified":"2023-11-21T03:18:17+00:00","description":"The Access Modifiers in VB.net are the keywords, and those are useful to define an accessibility level for all the types and type members.","breadcrumb":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#primaryimage","url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Access-Modifiers-in-VB.net-with-Example.png","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/Access-Modifiers-in-VB.net-with-Example.png","width":1460,"height":900,"caption":"Access Modifiers in VB.net with Example"},{"@type":"BreadcrumbList","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/access-modifiers-in-vb-net\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itsourcecode.com\/"},{"@type":"ListItem","position":2,"name":"Access Modifiers in VB.net with Example &#8211; List of Access Modifiers"}]},{"@type":"WebSite","@id":"https:\/\/itsourcecode.com\/#website","url":"https:\/\/itsourcecode.com\/","name":"Itsourcecode.com","description":"Partner In Your Coding Journey!","publisher":{"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itsourcecode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc","name":"itsourcecode","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","width":409,"height":409,"caption":"itsourcecode"},"logo":{"@id":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg"},"description":"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!","sameAs":["https:\/\/itsourcecode.com\/"]},{"@type":"Person","@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/dafb6a91b43e60537c56e3e1d227d460","name":"angel jude suarez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718","url":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718","caption":"angel jude suarez"},"description":"Hello programmers, I'm Angel Jude Reyes Suarez, a student and a programmer of different programming languages like Python, Java, JavaScript, PHP, C, C++, Vb.net, and MySQL. and I have also knowledge in developing system or websites from Front-End to Back-End. and also a writer of itsourcecode.com.","url":"https:\/\/itsourcecode.com\/author\/angeljudesuarez\/"}]}},"_links":{"self":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/64355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/users\/1767"}],"replies":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/comments?post=64355"}],"version-history":[{"count":43,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/64355\/revisions"}],"predecessor-version":[{"id":120488,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/64355\/revisions\/120488"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/media\/64416"}],"wp:attachment":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/media?parent=64355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/categories?post=64355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/tags?post=64355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}