IBitsPeerCacheAdministration::DeleteRecord method

Deletes a record and file from the cache. This method uses the record's identifier to identify the record to delete.

Syntax


HRESULT DeleteRecord(
  [in] REFGUID id
);

Parameters

id [in]

Identifier of the record to delete from the cache. The IBitsPeerCacheRecord::GetId method returns the identifier.

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

BG_E_BUSYCACHERECORD

The cache record is in use and cannot be changed or deleted. Try again after a few seconds.

 

Remarks

The cache record is not removed until all current activity with the cache record is complete.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Bits3_0.h (include Bits.h)

IDL

Bits3_0.idl

Library

Bits.lib

See also

IBitsPeerCacheAdministration
IBitsPeerCacheAdministration::DeleteUrl
IBitsPeerCacheAdministration::GetRecord

 

 

Show: