WindowHelperService.RegisterWindowMessageHandler Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Registers the specified delegate for event notifications.
Namespace: System.Activities.Design
Assembly: System.Activities.Design (in System.Activities.Design.dll)
Syntax
'Declaration
Public Function RegisterWindowMessageHandler ( _
callback As WindowMessage _
) As Boolean
'Usage
Dim instance As WindowHelperService
Dim callback As WindowMessage
Dim returnValue As Boolean
returnValue = instance.RegisterWindowMessageHandler(callback)
public bool RegisterWindowMessageHandler(
WindowMessage callback
)
public:
bool RegisterWindowMessageHandler(
WindowMessage^ callback
)
public function RegisterWindowMessageHandler(
callback : WindowMessage
) : boolean
member RegisterWindowMessageHandler :
callback:WindowMessage -> bool
Parameters
- callback
Type: System.Activities.Design.WindowMessage
The delegate to be registered for event notifications.
Return Value
Type: System.Boolean
true if the operation is successful; otherwise, false.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | callback 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.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4