IMobileAlertService.EnableAlert Method

[IMobileAlertService.EnableAlert is no longer available for use as of Windows Server 2012 Essentials.] Enables an alert.

Namespace: Microsoft.WindowsServerSolutions.Mobile.Web.Alerts
Assembly: MobileWeb (in MobileWeb.dll)


Dim instance As IMobileAlertService
Dim alertKey As String
Dim returnValue As Boolean

returnValue = instance.EnableAlert(alertKey)


<OperationContractAttribute> _
Function EnableAlert ( _
    alertKey As String _
) As Boolean
bool EnableAlert (
    string alertKey
bool EnableAlert (
    String^ alertKey
/** @attribute OperationContractAttribute() */ 
boolean EnableAlert (
    String alertKey
function EnableAlert (
    alertKey : String
) : boolean


  • alertKey
    Key (ID) of the target alert to enable.

Return Value

Returns Boolean. true if the target alert has been enabled; otherwise false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

Windows Server 2008 R2 x64, Windows 7 x64, Windows Server 2008 x64, Windows Vista x64

See Also


IMobileAlertService Interface
IMobileAlertService Members
Microsoft.WindowsServerSolutions.Mobile.Web.Alerts Namespace

Copyright © 2012 by Microsoft Corporation. All rights reserved.