次の方法で共有


_RuleActions.PlaySound Property

Returns a PlaySoundRuleAction object with _PlaySoundRuleAction.ActionType being olRuleActionNotifyRead. Read-only.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property PlaySound As PlaySoundRuleAction
    Get
'Usage
Dim instance As _RuleActions
Dim value As PlaySoundRuleAction

value = instance.PlaySound
[DispIdAttribute()]
PlaySoundRuleAction PlaySound { get; }

Property Value

Type: Microsoft.Office.Interop.Outlook.PlaySoundRuleAction

Remarks

Use the returned PlaySoundRuleAction object when enumerating the rule actions of an existing rule or when creating a new rule that specifies playing a sound file as an action.

This property of the RuleActions collection always returns a PlaySoundRuleAction object regardless of whether the rule associated with this RuleActions collection has defined such a rule action. If the rule has defined and enabled such a rule action, then _PlaySoundRuleAction.Enabled will be True.

See Also

Reference

_RuleActions Interface

_RuleActions Members

Microsoft.Office.Interop.Outlook Namespace