Share via


WHSInfoClass.RegisterForNotifications Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Registers an application for notification events.

Namespace: WHSInfoIF
Assembly: Interop.WHSInfoIF (in interop.whsinfoif.dll)

Syntax

'Declaration
Public Overridable Sub RegisterForNotifications ( _
    <InAttribute> pCallBack As INotificationCallback _
) Implements IWHSInfo.RegisterForNotifications
'Usage
Dim instance As WHSInfoClass
Dim pCallBack As INotificationCallback

CType(instance, IWHSInfo).RegisterForNotifications(pCallBack)
public virtual void IWHSInfo.RegisterForNotifications (
    [InAttribute] INotificationCallback pCallBack
)
public:
virtual void RegisterForNotifications (
    [InAttribute] INotificationCallback^ pCallBack
) = IWHSInfo::RegisterForNotifications

Parameters

  • pCallBack
    An object of type INotificationCallback.

    You must create a class that implements INotificationCallback, instantiate it, and then pass it as the parameter for the INotificationCallback method call.

    This class contains the methods that are called when a notification event occurs.

Remarks

Before you call the RegisterForNotifications method, you must call Init and identify your application to the Windows Home Server notification infrastructure.

The Init method takes a string that contains a unique identifier for your application. The unique identifier allows the notification infrastructure to associate notification changes with the specific application that sent the notification change.

If you try to register for notifications using RegisterForNotifications without first calling Init you will receive an error and your application will not be aware of Windows Home Server notification changes.

Platforms

Windows Home Server

Windows Home Server

See Also

Reference

WHSInfoClass Class
WHSInfoClass Members
WHSInfoIF Namespace

Footer image

© 2007 Microsoft Corporation. All rights reserved.