alerts

Contains the roaming alerts options that can be set by the user on Microsoft Lync 2010.

<alerts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    majorVersion="xs:unsignedInt"
    minorVersion="xs:unsignedInt"
    [anyAttr]="any attribute" 
    xmlns="https://schemas.microsoft.com/2006/09/sip/options/alerts">
    <alertsWhenDoNotDisturb>alertsWhenDoNotDisturbEnumEx token</alertsWhenDoNotDisturb>
    <notifyAdditionToContactList>xs:boolean</notifyAdditionToContactList>
    <showMessageTextForIncomingConversation>xs:boolean</showMessageTextForIncomingConversation>
    <delimiter xmlns="https://schemas.microsoft.com/2006/09/sip/commontypes" />
    <[any] >any element</[any]>
    <end xmlns="https://schemas.microsoft.com/2006/09/sip/commontypes" />
    <extension xmlns="https://schemas.microsoft.com/2006/09/sip/commontypes">
        <[any] xmlns="any_namespace">any element</[any]>
    </extension>
</alerts>

alertsType

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

majorVersion

Optional attribute to specify the major version number of this element.

minorVersion

Optional attribute to specify the minor version number of this element.

anyAttr

Optional custom attribute of any name in any namespace.

Child Elements

Element

Occurrence

Description

alertsWhenDoNotDisturb

0 or 1

A simple element containing a token of the altersWhenDoNotDisturbEnumEx type to set options on how the user gets notified when the user in the Do Not Disturb mode. Lync 2010 recognizes the following tokens:

displayAllAlerts

Display all alerts, except for conversation alerts, from people in the user's Workgroup container. This is the default token.

displayAlertsFromHighPresence

Display only conversation alerts from people in the user's Workgroup access level.

noAlerts

Do not display alerts.

notifyAdditionToContactList

0 or 1

A simple element containing a Boolean flag to specify whether the user gets notified when someone adds the user to his or her contact list (true) or not (false).

Lync 2010 adds the notifyAdditionToContactList element when the user selects (True) or clears (False) Notify me when someone adds me to his or her contact list from the Alerts option in the Lync Options dialog box. By default, Lync 2010 sets this value as True.

showMessageTextForIncomingConversation

0 or 1

A simple element containing a Boolean flag to specify whether the user is shown the subject or message text in conversation alerts (true) or not (false).

Lync 2010 adds the showMessageTextForIncomingConversation element when the user selects (True) or clears (False) Display subject or message in conversation alerts from the Alerts option in the Lync Options dialog box. By default, Lync 2010 sets this value as True.

ct:delimiter

0 or more

An empty element, of the CommonTypes (ct) namespace, to mark the start of a schema extension to its parent element. Elements describing the extension are enclosed between a ct:delimiter and ct:end elements or between two ct:delimiter elements.

ct:end

0 or 1

An empty element, of the CommonTypes (ct) namespace, to mark the end of all the schema extensions to its parent element.

ct:extension

0 or more

An element, of the CommonTypes (ct) namespace, to hold any elements of any namespace as an application-defined custom extension to the parent element.

[any]

0 or more

A custom element describing an extension to its parent element. When enclosed between a ct:delimiter element and a ct:end element or between two ct:delimiter elements, this element serves to describe a schema extension and can have any name in the namespace of its parent element. When contained in an ct:extension element, this element describes the application-defined custom extension and can have any name in any namespace.

Parent Elements

Element

Description

None

This is a top-level element as the value of an enhanced presence data of the alerts category name.

Text Value

None

Remarks

The options specified by this category instance correspond to the choices that can be set by a user from the Alerts option in the Lync Options dialog box.

The element supports schema extensions as well as custom extension and can have a custom attribute of any type.

Example

The following code example sets the alerts from high presence

<alerts xmlns="https://schemas.microsoft.com/2006/09/sip/options/alerts">
   <alertsWhenDoNotDisturb>displayAlertsFromHighPresence</alertsWhenDoNotDisturb>
   <notifyAdditionToContactList>true</notifyAdditionToContactList>
</alerts>

Element Information

Namespace

https://schemas.microsoft.com/2006/09/sip/options/alerts

Schema Name

Options-Alerts

Validation File

Options-Alerts.xsd

Can be Empty

True

See Also

Concepts

Workgroup Container

Self Container