Επεξεργασία

Κοινή χρήση μέσω


Marshal.IsTypeVisibleFromCom(Type) Method

Definition

Indicates whether a type is visible to COM clients.

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

Parameters

t
Type

The type to check for COM visibility.

Returns

true if the type is visible to COM; otherwise, false.

Remarks

IsTypeVisibleFromCom enables you to check for COM visibility in one step. Types that are not visible cannot be used from COM. A type is visible if it is public and not hidden with the System.Runtime.InteropServices.ComVisibleAttribute.

Applies to

See also