搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单项选择题】

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.&nbsp;<br /> You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.&nbsp;&nbsp;<br /> You plan to store the name of the file to a variable named SoundFilePath.&nbsp;<br /> You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays.&nbsp;<br /> What should you do?()<p> You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.&nbsp;<br /> You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.&nbsp;&nbsp;<br /> You plan to store the name of the file to a variable named SoundFilePath.&nbsp;<br /> You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays.&nbsp;<br /> What should you do?()</p>

A、A. Write the following code segment in the button onclick event.     System.Media.    SoundPlayer player = new System.Media.    SoundPlayer(SoundFilePath); player.play();

B、B. Write the following code segment in the button onclick event.    MediaPlayer player = new MediaPlayer();     player.Open(new URI(SoundFilePath),    UriKind.Relative)); player.play();

C、C. Use the following code segment from the PlaySound()    Win32 API function and call the PlaySound function in the button onclick event.    [sysimport(dll="winmm.dll")]     public static extern long PlaySound(String SoundFilePath, long hModule, long dwFlags);

D、D. Reference the Microsoft.DirectX Dynamic Link Libraries.     Use the following code segment in the button onclick event.     Audio song = new Song(SoundFilePath);     song.CurrentPosition = song.Duration; song.Play();

更多“You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.&nbsp;<br /> You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.&nbsp;&nbsp;<br /> You plan to store the name of the file to a variable named SoundFilePath.&nbsp;<br /> You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays.&nbsp;<br /> What should you do?()<p> You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.&nbsp;<br /> You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.&nbsp;&nbsp;<br /> You plan to store the name of the file to a variable named SoundFilePath.&nbsp;<br /> You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays.&nbsp;<br /> What should you do?()</p>”相关的问题
第3题

A、Microsoft Application Virtualization Sequencer&nbsp;&nbsp;B、Microsoft Application Virtualization Desktop Client&nbsp;&nbsp;C、Microsoft System Center Application Virtualization Streaming Server&nbsp;&nbsp;D、Microsoft System Center Application Virtualization Management Server&nbsp;&nbsp;

点击查看答案
第4题

A、Microsoft Application Virtualization Sequencer&nbsp;&nbsp;B、Microsoft Application Virtualization Desktop Client&nbsp;&nbsp;C、Microsoft System Center Application Virtualization Streaming Server&nbsp;&nbsp;D、Microsoft System Center Application Virtualization Management Server&nbsp;&nbsp;

点击查看答案
第10题

A、Use the AsOrdered method.&nbsp;&nbsp;B、Use the SelectMany method.&nbsp;&nbsp;C、Use the AutoBuffered option in the WithMergeOptions method.&nbsp;&nbsp;D、Use the WithExecutionMode method with the ParallelExecutionMode.ForceParallelism parameter.&nbsp;&nbsp;

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服