MyGroupCollectionAttribute 類別
注意:這個類別是 .NET Framework 2.0 版的新功能。
這個類別可以支援 .NET Framework 基礎結構,但不建議直接使用於您的程式碼中。
這個屬性會支援 Visual Basic 中的 My.Forms 和 My.WebServices。
命名空間: Microsoft.VisualBasic
組件: Microsoft.VisualBasic (在 microsoft.visualbasic.dll 中)
語法
'宣告
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=False, Inherited:=False)> _
Public NotInheritable Class MyGroupCollectionAttribute
Inherits Attribute
'用途
Dim instance As MyGroupCollectionAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class MyGroupCollectionAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple=false, Inherited=false)]
public ref class MyGroupCollectionAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false) */
public final class MyGroupCollectionAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=false)
public final class MyGroupCollectionAttribute extends Attribute
備註
這個屬性會支援 Visual Basic 中的 My.Forms 和 My.WebServices。它並不適合直接從您的程式碼使用。
當這個屬性 (Attribute) 用在類別上時,編譯器會先在類別中填入與專案中所有型別對應之屬性 (Property),這些屬性 (Property) 是衍生自 MyGroupName 屬性 (Property) 所指定的型別。
繼承階層架構
System.Object
System.Attribute
Microsoft.VisualBasic.MyGroupCollectionAttribute
執行緒安全
這個型別的所有公用靜態成員 (即 Visual Basic 中的 Shared 成員) 都是安全執行緒。並非所有的執行個體成員均為安全執行緒。
平台
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 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。
版本資訊
.NET Framework
支援版本:2.0
.NET Compact Framework
支援版本:2.0
請參閱
參考
MyGroupCollectionAttribute 成員
Microsoft.VisualBasic 命名空間