IVssWMDependency class (vswriter.h)

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.

Inheritance

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

Methods

The IVssWMDependency class has these methods.

 
IVssWMDependency::GetComponentName

The GetComponentName method retrieves the name of a component that the current component depends on in an explicit writer-component dependency.
IVssWMDependency::GetLogicalPath

The GetLogicalPath method retrieves the logical path of a component that the current component depends on in explicit writer-component dependency.
IVssWMDependency::GetWriterId

The GetWriterId method retrieves the class ID of a writer containing a component that the current component depends on in an explicit writer-component dependency.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header vswriter.h (include Vss.h, VsWriter.h)