_Type.IsNestedPublic Property

Definition

為 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

Property Value

Boolean

如果類別是巢狀並且宣告為公用,則為true ,否則為 falsetrue if the class is nested and declared public; otherwise, false.

Remarks

這個屬性是用來從非受控程式碼存取 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.

Applies to