Share via


WHSInfoClass.AddNotification Method

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

Creates a Windows Home Server notification with the specified WHS_Notification_Severity enumeration.

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

Syntax

'Declaration
Public Overridable Sub AddNotification ( _
    <InAttribute> UniqueID As String, _
    <InAttribute> State As WHS_Notification_Severity, _
    <InAttribute> textHeader As String, _
    <InAttribute> textDescription As String _
) Implements IWHSInfo.AddNotification
'Usage
Dim instance As WHSInfoClass
Dim UniqueID As String
Dim State As WHS_Notification_Severity
Dim textHeader As String
Dim textDescription As String

CType(instance, IWHSInfo).AddNotification(UniqueID, State, textHeader, textDescription)
public virtual void IWHSInfo.AddNotification (
    [InAttribute] string UniqueID,
    [InAttribute] WHS_Notification_Severity State,
    [InAttribute] string textHeader,
    [InAttribute] string textDescription
)
public:
virtual void AddNotification (
    [InAttribute] String^ UniqueID, 
    [InAttribute] WHS_Notification_Severity State, 
    [InAttribute] String^ textHeader, 
    [InAttribute] String^ textDescription
) = IWHSInfo::AddNotification

Parameters

  • UniqueID
    A string that contains the unique identifier for the notification.
  • textHeader
    A string that contains the notification caption.
  • textDescription
    A string that contains the notification message text.

Remarks

Before you call the AddNotification 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 without first calling Init you will receive an error and your application will not be able to add 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.