Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates a diff item for the specified file by using a pending change object at the specified target version.
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Shared Function CreateTargetDiffItem ( _
    versionControl As VersionControlServer, _
    change As PendingChange, _
    targetVersion As VersionSpec _
) As IDiffItem
public static IDiffItem CreateTargetDiffItem(
    VersionControlServer versionControl,
    PendingChange change,
    VersionSpec targetVersion
)
public:
static IDiffItem^ CreateTargetDiffItem(
    VersionControlServer^ versionControl, 
    PendingChange^ change, 
    VersionSpec^ targetVersion
)
static member CreateTargetDiffItem : 
        versionControl:VersionControlServer * 
        change:PendingChange * 
        targetVersion:VersionSpec -> IDiffItem
public static function CreateTargetDiffItem(
    versionControl : VersionControlServer, 
    change : PendingChange, 
    targetVersion : VersionSpec
) : IDiffItem
Parameters
- versionControl 
 Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer- The version control server. 
- change 
 Type: Microsoft.TeamFoundation.VersionControl.Client.PendingChange- The pending change describing the item. 
- targetVersion 
 Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec- The version of the file to create the IDiffItem for. 
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.IDiffItem
An IDiffItem for the specified pending change.
.NET Framework Security
- 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.