ComVisibleAttribute(Boolean) 建構函式

定義

初始化 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

若為 COM 可見的型別,為 true,否則為 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.

適用於