_Type.IsNotPublic _Type.IsNotPublic _Type.IsNotPublic _Type.IsNotPublic Property

定義

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

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

屬性值

如果最上層 Type 沒有宣告為公用,則為 true,否則為 falsetrue if the top-level Type is not 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.IsNotPublic屬性會取得值,指出是否最上層Type尚未宣告為公用。The Type.IsNotPublic property gets a value indicating whether the top-level Type is not declared public.

適用於