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

See Also

Reference

Type Class

System Namespace