Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronous method for determining whether media streaming is enabled on the server.
Namespace: Microsoft.WindowsServerSolutions.MediaStreaming
Assembly: MediaStreamingObjectModel (in MediaStreamingObjectModel.dll)
Syntax
public void IsMediaStreamingEnabledAsync()
public:
void IsMediaStreamingEnabledAsync()
Public Sub IsMediaStreamingEnabledAsync
Examples
The following code example shows how to asynchronously determine whether media streaming is enabled on the server:
MediaStreamingManager msm = new MediaStreamingManager();
msm.IsMediaStreamingEnabledAsyncCompleted +=
new EventHandler<MediaStreamingEnabledAsyncCompletedEventArgs>(
msm_MediaStreamingEnabledAsyncCompleted);
msm.IsMediaStreamingEnabledAsync();
The following code example shows how to implement the delegate method:
static void msm_MediaStreamingEnabledAsyncCompleted(object sender,
MediaStreamingEnabledAsyncCompletedEventArgs ea1)
{
Console.WriteLine("Media Streaming Enabled = {0}",
ea1.Enabled.ToString());
}
See Also
MediaStreamingManager Class
Microsoft.WindowsServerSolutions.MediaStreaming Namespace
Return to top