This documentation is archived and is not being maintained.
Difference::CreateTargetDiffItem Method (VersionControlServer, String, VersionSpec, Int32, VersionSpec)
Visual Studio 2013
Creates a diff item for the specified item.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public: static IDiffItem^ CreateTargetDiffItem( VersionControlServer^ versionControl, String^ path, VersionSpec^ itemVersion, int deletionId, VersionSpec^ targetVersion )
Parameters
- versionControl
- Type: Microsoft.TeamFoundation.VersionControl.Client::VersionControlServer
The version control server.
- path
- Type: System::String
The local or server path of the item.
- itemVersion
- Type: Microsoft.TeamFoundation.VersionControl.Client::VersionSpec
The version of the item that is specified by path.
- deletionId
- Type: System::Int32
The deletion ID for the item, or 0 if the item was not previously deleted.
- targetVersion
- Type: Microsoft.TeamFoundation.VersionControl.Client::VersionSpec
The version of the file to create the IDiffItem for.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client::IDiffItemA IDiffItem for the specified item.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: