共用方式為


IUpdateSession interface

Represents a session in which the caller can perform operations that involve updates. For example, this interface represents sessions in which the caller performs a search, download, installation, or uninstallation operation.

Members

The IUpdateSession interface inherits from the IDispatch interface. IUpdateSession also has these types of members:

  • Methods
  • Properties

Methods

The IUpdateSession interface has these methods.

Method Description
CreateUpdateDownloader

Returns an IUpdateDownloader interface for this session.

CreateUpdateInstaller

Returns an IUpdateInstaller interface for this session.

CreateUpdateSearcher

Returns an IUpdateSearcher interface for this session.

 

Properties

The IUpdateSession interface has these properties.

Property Access type Description

ClientApplicationID

Read/write

Identifies the current client application.

ReadOnly

Read-only

Gets a Boolean value that indicates whether the session object is read-only.

WebProxy

Read/write

Gets and sets the proxy settings that are used to access the server.

 

Remarks

You can create an instance of this interface by using the UpdateSession coclass. Use the Microsoft.Update.Session program identifier to create the object.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional with SP3 [desktop apps only]

Minimum supported server

Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

IID

IID_IUpdateSession is defined as 816858A4-260D-4260-933A-2585F1ABC76B