Type.IsImport Свойство
Определение
Возвращает значение, позволяющее определить, есть ли у объекта Type атрибут ComImportAttribute, свидетельствующий о том, что объект был импортирован из библиотеки COM-типов.Gets a value indicating whether the Type has a ComImportAttribute attribute applied, indicating that it was imported from a COM type library.
public:
property bool IsImport { bool get(); };
public bool IsImport { get; }
member this.IsImport : bool
Public ReadOnly Property IsImport As Boolean
Значение свойства
Значение true
, если у Type есть атрибут ComImportAttribute; в противном случае — значение false
.true
if the Type has a ComImportAttribute; otherwise, false
.
Реализации
Комментарии
Если текущий Type представляет сконструированный универсальный тип, это свойство применяется к определению универсального типа, из которого был создан тип.If the current Type represents a constructed generic type, this property applies to the generic type definition from which the type was constructed. Например, если текущий Type представляет MyGenericType<int>
(MyGenericType(Of Integer)
в Visual Basic), значение этого свойства определяется с помощью 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>.
Если текущий Type представляет параметр типа в определении универсального типа или универсального метода, это свойство всегда возвращает false
.If the current Type represents a type parameter in the definition of a generic type or generic method, this property always returns false
.