Marshal.IsTypeVisibleFromCom(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.