IsInterface Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets a value indicating whether the Type is an interface; that is, not a class or a value type.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public ReadOnly Property IsInterface As Boolean
public bool IsInterface { get; }
public:
property bool IsInterface {
bool get ();
}
member IsInterface : bool with get
function get IsInterface () : boolean
Property Value
Type: System. . :: . .Boolean
true if the Type is an interface; otherwise, false.
Remarks
The ClassSemanticsMask distinguishes a type declaration as class, interface or value type.
If the current Type represents a type parameter in the definition of a generic type or generic method, this property always returns false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.