ComVisibleAttribute(Boolean) ComVisibleAttribute(Boolean) ComVisibleAttribute(Boolean) ComVisibleAttribute(Boolean) Constructor

定义

初始化 ComVisibleAttribute 类的新实例。Initializes a new instance of the ComVisibleAttribute class.

public:
 ComVisibleAttribute(bool visibility);
public ComVisibleAttribute (bool visibility);
new System.Runtime.InteropServices.ComVisibleAttribute : bool -> System.Runtime.InteropServices.ComVisibleAttribute
Public Sub New (visibility As Boolean)

参数

visibility
Boolean Boolean Boolean Boolean

true 指示该类型对 COM 可见;否则为 falsetrue to indicate that the type is visible to COM; otherwise, false. 默认值为 trueThe default is true.

注解

若要使类型对 COM 可见,请将属性设置为trueTo make types visible to COM, set the attribute to true. 若要隐藏从 COM 类型,请将属性设置为falseTo hide types from COM, set the attribute to false.

适用于