AccessModifier Enumeration

Specifies the access level of a declared element.

Namespace:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel
Assembly:  Microsoft.VisualStudio.Tools.Applications.ProgrammingModel (in Microsoft.VisualStudio.Tools.Applications.ProgrammingModel.dll)

Syntax

'Declaration
<GuidAttribute("32645144-7527-4F43-995E-59017F3EEC24")> _
<ComVisibleAttribute(True)> _
Public Enumeration AccessModifier
'Usage
Dim instance As AccessModifier
[GuidAttribute("32645144-7527-4F43-995E-59017F3EEC24")]
[ComVisibleAttribute(true)]
public enum AccessModifier
[GuidAttribute(L"32645144-7527-4F43-995E-59017F3EEC24")]
[ComVisibleAttribute(true)]
public enum class AccessModifier
public enum AccessModifier

Members

Member name Description
Default The default access modifier. Public for Visual Basic, private for C#.
Public Public types or members can be accessed from all types that have access to the containing class.
Protected Protected members can be accessed within their own class and by derived classes.
ProtectedInternal ProtectedInternal types or members can be accessed only within files in the same assembly, or within types derived from the containing class.
Internal Internal types or members can be accessed only within files in the same assembly.
Private Private types or members can be accessed only within the body of the class or the struct in which they are declared.

Remarks

The AccessModifier determines what code can access the declared element.

See Also

Reference

Microsoft.VisualStudio.Tools.Applications.ProgrammingModel Namespace