MediaStreamingManager.GetSharedFoldersAsync Method ()
Asynchronously provides a collection of shared folders on the server.
Namespace: Microsoft.WindowsServerSolutions.MediaStreaming
Assembly: MediaStreamingObjectModel (in MediaStreamingObjectModel.dll)
Syntax
public void GetSharedFoldersAsync()
public:
void GetSharedFoldersAsync()
Public Sub GetSharedFoldersAsync
Examples
The following code example shows how to asynchronously retrieve a list of shared folders and write the folder names:
MediaStreamingManager msm = new MediaStreamingManager();
msm.GetSharedFoldersAsyncCompleted +=
new EventHandler<SharedFoldersAsyncCompletedEventArgs>(
msm_SharedFoldersAsyncCompleted);
msm.GetSharedFoldersAsync();
The following example shows how to implement the delegate method:
static void msm_SharedFoldersAsyncCompleted(object sender,
SharedFoldersAsyncCompletedEventArgs ea1)
{
foreach (MediaStreamingSharedFolder share in ea1.SharedFolders)
{
Console.WriteLine("Shared Folder Name = {0}", share.Name);
}
}
See Also
MediaStreamingManager Class
Microsoft.WindowsServerSolutions.MediaStreaming Namespace
Return to top