Type.IsCOMObject Proprietà
Definizione
public:
property bool IsCOMObject { bool get(); };
public bool IsCOMObject { get; }
member this.IsCOMObject : bool
Public ReadOnly Property IsCOMObject As Boolean
Valore della proprietà
true
se Type è un oggetto COM; in caso contrario, false
.true
if the Type is a COM object; otherwise, false
.
Implementazioni
Commenti
Questo metodo restituisce false
per le interfacce com perché non sono oggetti.This method returns false
for COM interfaces because they are not objects. Le interfacce COM possono essere implementate da oggetti Microsoft .NET Framework.COM interfaces can be implemented by Microsoft .NET Framework objects.
È anche possibile caricare una classe COM e ottenere un Type
oggetto per tale classe com usando lo strumento Tlbimp.exe (utilità di importazione della libreria dei tipi) .You can also load a COM class and get a Type
object for that COM class by using the Tlbimp.exe (Type Library Importer) tool.
Se l'oggetto corrente Type rappresenta un tipo generico costruito, questa proprietà si applica alla definizione di tipo generico da cui è stato creato il tipo.If the current Type represents a constructed generic type, this property applies to the generic type definition from which the type was constructed. Se, ad esempio, l'oggetto corrente Type rappresenta MyGenericType<int
> ( MyGenericType(Of Integer)
in Visual Basic), il valore di questa proprietà è determinato da MyGenericType<T>
.For example, if the current Type represents MyGenericType<int
> (MyGenericType(Of Integer)
in Visual Basic), the value of this property is determined by MyGenericType<T>
.
Se l'oggetto corrente Type rappresenta un parametro di tipo nella definizione di un tipo o di un metodo generico, la proprietà restituisce sempre false
.If the current Type represents a type parameter in the definition of a generic type or generic method, this property always returns false
.