PlaySoundAction 類別
將播放完成聲音的動作。
命名空間: Microsoft.Expression.Interactivity.Media
組件: Microsoft.Expression.Interactions (在 microsoft.expression.interactions.dll 中)
語法
'宣告
Public Class PlaySoundAction
Inherits TriggerAction(Of DependencyObject)
'用途
Dim instance As PlaySoundAction
public class PlaySoundAction : TriggerAction<DependencyObject>
public ref class PlaySoundAction : public TriggerAction<DependencyObject^>
public class PlaySoundAction extends TriggerAction<DependencyObject>
public class PlaySoundAction extends TriggerAction<DependencyObject>
備註
此動作適用於不需要停止或控制的短音效。如果您要嘗試建立音樂播放程式或遊戲,它可能不符合您的需求。
繼承階層
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Freezable
System.Windows.Media.Animation.Animatable
System.Windows.Interactivity.TriggerAction
System.Windows.Interactivity.TriggerAction
Microsoft.Expression.Interactivity.Media.PlaySoundAction
執行緒安全性
此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。
另請參閱
參照
PlaySoundAction 成員
Microsoft.Expression.Interactivity.Media 命名空間