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.
.gif)
| Previous | Next |
IWMSPublishingPoint.AllowPlayerSideDiskCaching (Visual Basic .NET)
The AllowPlayerSideDiskCaching property specifies and retrieves a Boolean value that indicates whether the publishing point allows clients to cache content locally whenever the bandwidth of the connection exceeds the encoded bit rate of the on-demand content. This allows the player to minimize the effects of temporary reductions in network throughput.
Syntax
IWMSPublishingPoint .AllowPlayerSideDiskCaching = Boolean Boolean = IWMSPublishingPoint .AllowPlayerSideDiskCaching
Property Value
A Boolean indicating whether the publishing point allows clients to cache content locally. By default, this value is True.
If this property fails, it returns an error number.
| Number | Description |
| 0xC00D145AL | The publishing point was already removed. |
Example Code
' Declare variables.
Dim Server As WMSServer
Dim PubPoints As IWMSPublishingPoints
Dim PubPoint As IWMSPublishingPoint
Dim bVal As Boolean
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints
' Retrieve information about each publishing point.
For Each PubPoint In PubPoints
' Retrieve a Boolean value indicating whether
' client-side disk caching is allowed.
bVal = PubPoint.AllowPlayerSideDiskCaching
' Set a Boolean value indicating that
' client-side disk caching is not allowed.
PubPoint.AllowPlayerSideDiskCaching = False
Next
Catch excCom As COMException
' TODO: Handle COM exceptions.
Catch exc As Exception
' TODO: Handle errors.
Finally
' TODO: Clean-up code goes here.
End Try
End Sub
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
| Previous | Next |