Share via


WHSInfoClass.Init Method

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

Identifies your application to the Windows Home Server notification infrastructure.

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

Syntax

'Declaration
Public Overridable Sub Init ( _
    <InAttribute> ApplicationName As String _
) Implements IWHSInfo.Init
'Usage
Dim instance As WHSInfoClass
Dim ApplicationName As String

CType(instance, IWHSInfo).Init(ApplicationName)
public virtual void IWHSInfo.Init (
    [InAttribute] string ApplicationName
)
public:
virtual void Init (
    [InAttribute] String^ ApplicationName
) = IWHSInfo::Init

Parameters

  • ApplicationName
    A string that contains the unique identifier for your application.

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 add a notification using AddNotification or register for notifications using RegisterForNotifications without first calling :WHSInfoIF.WHSInfoClass.Init(System.String), you will receive an error and your application will not be able to send or receive Windows Home Server notifications.

Platforms

Windows Home Server

Windows Home Server

See Also

Reference

WHSInfoClass Class
WHSInfoClass Members
WHSInfoIF Namespace

Footer image

© 2007 Microsoft Corporation. All rights reserved.