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)

Usage

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

returnValue = instance.EnableAlert(alertKey)

Syntax

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

Parameters

  • 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.

Platforms

Development Platforms

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

See Also

Reference

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

Copyright © 2012 by Microsoft Corporation. All rights reserved.