Partager via


IMediaStreaming.SetSharedFolderMediaStreamingEnabled Method (MediaStreamingSharedFolderData, Boolean)

 

Includes or excludes the specified shared folder from the Media Library.

Namespace:   Microsoft.WindowsServerSolutions.MediaStreaming
Assembly:  MediaStreamingObjectModel (in MediaStreamingObjectModel.dll)

Syntax

[OperationContractAttribute]
[FaultContractAttribute(typeof(ArgumentNullException))]
[FaultContractAttribute(typeof(SecurityAccessDeniedException))]
void SetSharedFolderMediaStreamingEnabled(
    MediaStreamingSharedFolderData share,
    bool enable
)
[OperationContractAttribute]
[FaultContractAttribute((ArgumentNullException^::typeid))]
[FaultContractAttribute((SecurityAccessDeniedException^::typeid))]
void SetSharedFolderMediaStreamingEnabled(
    MediaStreamingSharedFolderData^ share,
    bool enable
)
<OperationContractAttribute>
<FaultContractAttribute(GetType(ArgumentNullException))>
<FaultContractAttribute(GetType(SecurityAccessDeniedException))>
Sub SetSharedFolderMediaStreamingEnabled (
    share As MediaStreamingSharedFolderData,
    enable As Boolean
)

Parameters

  • enable
    Type: System.Boolean

    True if the specified shared folder is to be included in the Media Library, false otherwise.

Exceptions

Exception Condition
FaultException<TDetail>

If share is null.

FaultException<TDetail>

If the caller is not a member of the Administrators user group.

FaultException<TDetail>

If a service or provider that the Media Streaming Provider depends upon cannot be contacted to help service this request.

Remarks

Note that the specified configuration of a shared folder in the Media Library is independent of whether media streaming is enabled or disabled on the home server.

See Also

IMediaStreaming Interface
Microsoft.WindowsServerSolutions.MediaStreaming Namespace

Return to top