Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
When overridden in a derived class, determines whether a method name that handles a specified event already exists.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function IsExistingMethodName ( _
modelEvent As ModelEvent, _
methodName As String _
) As Boolean
public abstract bool IsExistingMethodName(
ModelEvent modelEvent,
string methodName
)
public:
virtual bool IsExistingMethodName(
ModelEvent^ modelEvent,
String^ methodName
) abstract
abstract IsExistingMethodName :
modelEvent:ModelEvent *
methodName:string -> bool
public abstract function IsExistingMethodName(
modelEvent : ModelEvent,
methodName : String
) : boolean
Parameters
- modelEvent
Type: Microsoft.Windows.Design.Model.ModelEvent
The event that methodName handles.
- methodName
Type: System.String
The name of the method to check.
Return Value
Type: System.Boolean
true if the method name that handles modelEvent already exists; otherwise, false.
Remarks
For example, if a method named Button1_Click already exists that handles the Click event for Button1, then this method should return true.
.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.Services Namespace