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
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.