_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.

注解

此属性是用于访问托管类到从非托管代码,不应从托管代码调用。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.

适用于