_Type.IsPublic _Type.IsPublic _Type.IsPublic _Type.IsPublic Property

定義

為 COM 物件提供與版本無關的 IsPublic 屬性之存取權。Provides COM objects with version-independent access to the IsPublic property.

public:
 property bool IsPublic { bool get(); };
public bool IsPublic { get; }
member this.IsPublic : bool
Public ReadOnly Property IsPublic As Boolean

屬性值

如果最上層 Type 宣告為公用,則為 true,否則為 falsetrue if the top-level Type is declared public; otherwise, false.

備註

這個屬性從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。This property is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.IsPublic屬性會取得值,指出是否最上層Type已宣告為公用。The Type.IsPublic property gets a value indicating whether the top-level Type is declared public.

適用於