MediaStreamingManager.GetMediaLibraryName Method ()
Provides the name of the Media Library that is shared by the server.
Namespace: Microsoft.WindowsServerSolutions.MediaStreaming
Assembly: MediaStreamingObjectModel (in MediaStreamingObjectModel.dll)
Syntax
public string GetMediaLibraryName()
public:
String^ GetMediaLibraryName()
Public Function GetMediaLibraryName As String
Return Value
Type: System.String
An instance of String that contains the name of the Media Library.
Exceptions
Exception | Condition |
---|---|
SecurityAccessDeniedException | The caller is not a local administrator. |
ProviderNotAvailableException | The media streaming provider cannot be contacted. |
Examples
The following code example shows how to retrieve the name of the shared Media Library:
MediaStreamingManager mediaStreamingManager = new MediaStreamingManager();
string mediaLibraryName =
mediaStreamingManager.GetMediaLibraryName();
See Also
MediaStreamingManager Class
Microsoft.WindowsServerSolutions.MediaStreaming Namespace
Return to top