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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για