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.
Indicates whether media streaming is enabled on the server.
Namespace: Microsoft.WindowsServerSolutions.MediaStreaming
Assembly: MediaStreamingObjectModel (in MediaStreamingObjectModel.dll)
Syntax
public bool IsMediaStreamingEnabled()
public:
bool IsMediaStreamingEnabled()
Public Function IsMediaStreamingEnabled As Boolean
Return Value
Type: System.Boolean
true if media streaming is enabled; otherwise, false.
Exceptions
Exception | Condition |
---|---|
SecurityAccessDeniedException | The caller is not a local administrator. |
ProviderNotAvailableException | The media streaming provider cannot be contacted. |
Remarks
The return value is independent of whether a particular shared folder is configured to be included in or excluded from the Media Library.
Examples
The following code example shows how to determine whether media streaming is enabled:
MediaStreamingManager mediaStreamingManager = new MediaStreamingManager();
bool result = mediaStreamingManager.IsMediaStreamingEnabled();
Console.WriteLine("Media Streaming Enabled = {0}", result.ToString());
See Also
MediaStreamingManager Class
Microsoft.WindowsServerSolutions.MediaStreaming Namespace
Return to top