Share via


IWMSCacheProxy.QuerySpaceForCacheItem (Visual Basic .NET)

banner art

Previous Next

IWMSCacheProxy.QuerySpaceForCacheItem (Visual Basic .NET)

The QuerySpaceForCacheItem method is called by the server to retrieve a Boolean value indicating whether the cache has adequate storage for a specific content item.

Syntax

  

Parameters

lContentSizeLow

[in] Integer containing the low-order 8 bytes of a 64-bit integer.

lContentSizeHigh

[in] Integer containing the high-order 8 bytes of a 64-bit integer.

pvarfSpaceAvail

[in] Reference to a Boolean that indicates whether the cache has enough available storage.

Return Values

This method does not return a value.

Remarks

lContentSizeHigh and lContentSizeLow are 32-bit signed long integers that represent the upper and lower 8 bytes of a 64-bit integer.

Example Code

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Public Sub QuerySpaceForCacheItem(ByVal ContentSizeLow As Integer, _
                                  ByVal ContentSizeHigh As Integer, _
                                  ByRef bSpaceAvail As Boolean) _
  Implements IWMSCacheProxy.QuerySpaceForCacheItem

    Try
        ' TODO: Call a user-defined function to determine
        ' whether adequate storage exists.
        bSpaceAvil = QuerySpace(ContentSizeLow, ContentSizeHigh)
    Catch
        Throw New COMException()
    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, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Previous Next