_Type.IsImport Property


Provides COM objects with version-independent access to the Type.IsImport property.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

bool IsImport { get; }

Property Value

Type: System.Boolean

true if the Type has ComImportAttribute; otherwise, false.

This property is for access to managed classes from unmanaged code, and should not be called from managed code.

The Type.IsImport property gets a value indicating whether the Type has ComImportAttribute, indicating that it was imported from a COM type library.

.NET Framework
Available since 1.1
Return to top