ModelEvent.IsEventOfType Method (Type)
Determines whether this event is of the specified type, or implements the interface of the specified type.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Overridable Function IsEventOfType ( _
type As Type _
) As Boolean
public virtual bool IsEventOfType(
Type type
)
public:
virtual bool IsEventOfType(
Type^ type
)
abstract IsEventOfType :
type:Type -> bool
override IsEventOfType :
type:Type -> bool
public function IsEventOfType(
type : Type
) : boolean
Parameters
- type
Type: System.Type
A Type object that represents the type.
Return Value
Type: System.Boolean
true if this event is of the type represented by type; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | type is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace