Exportar (0) Imprimir
Expandir Tudo
EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

IBitsPeerCacheAdministration interface

Use IBitsPeerCacheAdministration to manage the pool of peers from which you can download content.

To get this interface, call the IBackgroundCopyManager::QueryInterface method, using __uuidof(IBitsPeerCacheAdministration) as the interface identifier.

Note  This interface is deprecated in BITS 4.0, and all of the API methods will return S_FALSE.

Members

The IBitsPeerCacheAdministration interface inherits from the IUnknown interface. IBitsPeerCacheAdministration also has these types of members:

Methods

The IBitsPeerCacheAdministration interface has these methods.

MethodDescription
ClearPeers

Removes all peers from the list of peers that can serve content.

ClearRecords

Removes all the records and files from the cache.

DeleteRecord

Deletes a record and file from the cache based on the record identifier.

DeleteUrl

Deletes all cache records and the file from the cache for the given URL.

DiscoverPeers

Generates a list of peers that can serve content.

EnumPeers

Gets an IEnumBitsPeers interface pointer that you use to enumerate the peers that can serve content.

EnumRecords

Gets an IEnumBitsPeerCacheRecords interface pointer that you use to enumerate the records in the cache.

GetConfigurationFlags

Gets the configuration flags that determine whether the computer serves content to peers and can download content from peers.

GetMaximumCacheSize

Gets the maximum size of the cache.

GetMaximumContentAge

Gets the age by when files are removed from the cache.

GetRecord

Gets a record from the cache.

SetConfigurationFlags

Sets the configuration flags that determine whether the computer serves content to peers and can download content from peers.

SetMaximumCacheSize

Specifies the maximum size of the cache.

SetMaximumContentAge

Specifies when files are removed from the cache based on age.

 

Remarks

You should never have to manage the peer cache; BITS manages the cache for you.

You must have administrator privileges to modify the cache.

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

Administering the Peer Cache
Peer Caching

 

 

Contribuições da comunidade

ADICIONAR
Mostrar:
© 2014 Microsoft