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, creates a method that handles an event.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function CreateMethod ( _
modelEvent As ModelEvent, _
methodName As String _
) As Boolean
public abstract bool CreateMethod(
ModelEvent modelEvent,
string methodName
)
public:
virtual bool CreateMethod(
ModelEvent^ modelEvent,
String^ methodName
) abstract
abstract CreateMethod :
modelEvent:ModelEvent *
methodName:string -> bool
public abstract function CreateMethod(
modelEvent : ModelEvent,
methodName : String
) : boolean
Parameters
- modelEvent
Type: Microsoft.Windows.Design.Model.ModelEvent
The event that methodName handles.
- methodName
Type: System.String
The method to create.
Return Value
Type: System.Boolean
true if the method is successfully created; otherwise, false.
Remarks
If the method name is not unique, the method cannot be created.
.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