語言

Marshal.IsTypeVisibleFromCom(Type) 方法

定義

顯示某類型是否對 COM 用戶端可見。

public:
 static bool IsTypeVisibleFromCom(Type ^ t);
public static bool IsTypeVisibleFromCom(Type t);
static member IsTypeVisibleFromCom : Type -> bool
Public Shared Function IsTypeVisibleFromCom (t As Type) As Boolean

參數

t
Type

檢查COM能見度的類型。

傳回

true如果該類型對 COM 是可見的;否則,。 false

備註

IsTypeVisibleFromCom 讓你能一步檢查 COM 的可見性。 不可見的類型無法從 COM 中使用。 若一個類型是 public 可見且未被隱藏的 System.Runtime.InteropServices.ComVisibleAttribute。

適用於

另請參閱