共用方式為


Class View and Object Browser Icons

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Class View** and the Object Browser display icons that represent code entities, for example, namespaces, classes, functions, and variables. The following table illustrates and describes the icons.

Icon Description Icon Description
Namespace Symbol Namespace Declaration Symbol Method or Function
Class Icon Class Operator Symbol Operator
Lollipop Interface Symbol Interface Property Symbol Property
Structure Symbol Structure Field Icon Field or Variable
Union Symbol Union Event Symbol Event
Enumeration Symbol Enum Constant Icon Constant
Type Definition Symbol TypeDef Enumerate Item Symbol Enum Item
Visual Studio Module Symbol Module Map Item Symbol Map Item
Extension Method Symbol Extension Method Declaration Symbol External Declaration
Delegate Symbol Delegate Error Icon for Class View and Object Browser Error
Exception Symbol Exception Template Symbol Template
Map Symbol Map Error Exclamation Point Symbol Unknown
Type Forwarding Symbol Type Forwarding

Signal Icons

The following signal icons apply to all the previous icons and indicate their accessibility.

Note

If your project is included in a source control database, additional signal icons may be displayed to indicate source-control status, such as checked in or checked out.

Icon Description
<No Signal Icon> Public. Accessible from anywhere in this component and from any component that references it.
Signal Protected Symbol Protected. Accessible from the containing class or type, or those derived from the containing class or type.
Signal Private Symbol Private. Accessible only in the containing class or type.
Signal Sealed Symbol Sealed.
Signal Friend/Internal Symbol Friend/Internal. Accessible only from the project.
Signal Icon Arrow Shortcut. A shortcut to the object.

See Also

Viewing the Structure of Code