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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.