Partager via


DeviceManager.BeginPlayAudioFile Method

Plays an audio file on a specified audio device.

Namespace:  Microsoft.Lync.Model.Device
Assembly:  Microsoft.Lync.Model (in Microsoft.Lync.Model.dll)

Syntax

'Declaration
Public Function BeginPlayAudioFile ( _
    audioFileName As String, _
    playbackDevices As AudioPlayBackModes, _
    loop As Boolean, _
    deviceManagerCallback As AsyncCallback, _
    state As Object _
) As IAsyncResult
'Usage
Dim instance As DeviceManager
Dim audioFileName As String
Dim playbackDevices As AudioPlayBackModes
Dim loop As Boolean
Dim deviceManagerCallback As AsyncCallback
Dim state As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginPlayAudioFile(audioFileName, _
    playbackDevices, loop, deviceManagerCallback, _
    state)
public IAsyncResult BeginPlayAudioFile(
    string audioFileName,
    AudioPlayBackModes playbackDevices,
    bool loop,
    AsyncCallback deviceManagerCallback,
    Object state
)

Parameters

Return Value

Type: System.IAsyncResult

See Also

Reference

DeviceManager Class

DeviceManager Members

Microsoft.Lync.Model.Device Namespace