IVsDifferenceService::OpenComparisonWindowFromCommandLineArguments Method (String^)

 

Opens and displays a file comparison window in Visual Studio, parsing the arguments parameter to extract the left and right files, and the labels and roles (using the default labels and roles if none are specified explicitly).

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

IVsWindowFrame^ OpenComparisonWindowFromCommandLineArguments(
	String^ Arguments
)

Parameters

Arguments
Type: System::String^

[in] The arguments for opening and displaying the file comparison window.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^

Window frame for the comparison view.

The arguments for Arguments use the following form:

    leftFile rightFile leftLabel rightLabel inlineLabel roles

where each argument is separated by a space.

If either the left or right file is a binary file (which cannot be opened in the text editor), then this call will cause Visual Studio to display a modal dialog box and return S_OK (even though pDiffWindow is null).

Return to top
Show: