Partager via


IMediaStreaming.SetComputerMediaStreamingEnabled Method (Boolean)

 

Enables or disables media streaming on the home server.

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

Syntax

[OperationContractAttribute]
[FaultContractAttribute(typeof(SecurityAccessDeniedException))]
void SetComputerMediaStreamingEnabled(
    bool enable
)
[OperationContractAttribute]
[FaultContractAttribute((SecurityAccessDeniedException^::typeid))]
void SetComputerMediaStreamingEnabled(
    bool enable
)
<OperationContractAttribute>
<FaultContractAttribute(GetType(SecurityAccessDeniedException))>
Sub SetComputerMediaStreamingEnabled (
    enable As Boolean
)

Parameters

  • enable
    Type: System.Boolean

    True if media streaming is to be enabled, false otherwise

Exceptions

Exception Condition
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 state of media streaming is independent of whether a particular shared folder is configured to be included or excluded from the Media Library.

See Also

IMediaStreaming Interface
Microsoft.WindowsServerSolutions.MediaStreaming Namespace

Return to top