Windows Dev Center

IVssWMDependency interface

The IVssWMDependency is a C++ (not COM) interface returned by the IVssWMComponent interface and used by applications when backing up or restoring a component that has an explicit writer-component dependency on a component managed by another writer. (Dependencies must be between writers, not within writers.)

IVssWMDependency is used to determine the writer ID, logical path, and component name of components that must be restored or backed up along with the target component.

Dependencies are created by writers while handling Identify events (CVssWriter::OnIdentify) using the IVssCreateWriterMetadata::AddComponentDependency method.

Calling applications are responsible for calling IUnknown::Release to release resources held by a returned IVssWMDependency object when it is no longer needed.

The IVssWMComponent::GetDependency method returns an IVssWMDependency interface.

Note that a dependency does not indicate an order of preference between the component with the documented dependencies and the components it depends on. A dependency merely indicates that the component and the components it depends on must always be backed up or restored together.

Members

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

Methods

The IVssWMDependency interface has these methods.

MethodDescription
GetComponentName

Retrieves the name of a component that the current component depends on.

GetLogicalPath

Retrieves the logical path of a component that the current component depends on.

GetWriterId

Retrieves the class ID of a writer containing a component that the current component depends on.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

VsWriter.h (include Vss.h or VsWriter.h)

Library

VssApi.lib

 

 

Community Additions

ADD
Show:
© 2015 Microsoft