HideModuleNameAttribute クラス
アセンブリ: Microsoft.VisualBasic (microsoft.visualbasic.dll 内)

<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=False, Inherited:=False)> _ Public NotInheritable Class HideModuleNameAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false)] public sealed class HideModuleNameAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple=false, Inherited=false)] public ref class HideModuleNameAttribute sealed : public Attribute

詳細については、Visual Basic のトピック「HideModuleNameAttribute クラス」を参照してください。
この属性は、モジュール自体を公開せずにモジュール メンバを公開する場合に便利です。IntelliSense を Visual Basic の Visual Studio 統合開発環境 (IDE: Integrated Development Environment) で使用すると、モジュールはステートメント入力候補の一覧に表示されません。IntelliSense は、代わりにモジュール メンバを表示します。
モジュール名が非表示の場合でも、モジュール メンバにはモジュール経由でアクセスできます。
メンバ名が別の識別子や HideModuleNameAttribute 属性を持つ別のモジュールのメンバと競合する場合は、IntelliSense のモジュールのレベルにメンバは表示されません。

この例では、HideModuleNameAttribute 属性を使用して、My.Database からアクセスできるデータベース オブジェクトを My に追加する方法を示しています。
Namespace My <HideModuleName()> Module CustomMyDatabase Public ReadOnly Property Database() As MyDatabase Get Return databaseValue End Get End Property Private ReadOnly databaseValue As MyDatabase = New MyDatabase End Module End Namespace Class MyDatabase ' The members of the My.Database object go here. End Class

System.Attribute
Microsoft.VisualBasic.HideModuleNameAttribute


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


HideModuleNameAttribute メンバ
Microsoft.VisualBasic 名前空間
その他の技術情報
HideModuleNameAttribute クラス
Visual Basic における属性
VBFixedArrayAttribute クラス
VBFixedStringAttribute クラス
Visual Basic で使用される属性
- HideModuleNameAttribute クラスのページへのリンク