HideModuleNameAttribute Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
The HideModuleNameAttribute attribute, when applied to a module, allows the module members to be accessed using only the qualification needed for the module.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .Attribute
Microsoft.VisualBasic..::..HideModuleNameAttribute
Namespace: Microsoft.VisualBasic
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Syntax
'Declaration
<EmbeddedAttribute> _
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := False)> _
Public Class HideModuleNameAttribute _
Inherits Attribute
[EmbeddedAttribute]
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = false)]
public class HideModuleNameAttribute : Attribute
[EmbeddedAttribute]
[AttributeUsageAttribute(AttributeTargets::Class, Inherited = false)]
public ref class HideModuleNameAttribute : public Attribute
[<EmbeddedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, Inherited = false)>]
type HideModuleNameAttribute =
class
inherit Attribute
end
public class HideModuleNameAttribute extends Attribute
The HideModuleNameAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HideModuleNameAttribute | Initializes a new instance of the HideModuleNameAttribute attribute. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
This attribute is useful for exposing module members without showing the module itself. When using IntelliSense in the Visual Studio Integrated Development Environment (IDE) for Visual Basic, the module does not show in the statement completion list. Instead, IntelliSense shows the module members.
Even when the module name is hidden, the module members are still accessible through the module.
If a member name conflicts with another identifier or with a member of another module with the HideModuleNameAttribute attribute, then the member does not show in IntelliSense at the level of the module.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.