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

注解

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

适用于