_Type.IsNestedPublic _Type.IsNestedPublic _Type.IsNestedPublic _Type.IsNestedPublic Property

定義

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

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

屬性值

如果類別是巢狀並且宣告為公用,則為 true,否則為 falsetrue if the class is nested and 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.IsNestedPublic屬性會取得值,指出類別是巢狀並且宣告為公用。The Type.IsNestedPublic property gets a value indicating whether a class is nested and declared public.

適用於