Dela via


IVsDifferenceService.OpenComparisonWindowFromCommandLineArguments Method

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)

Syntax

'Declaration
Function OpenComparisonWindowFromCommandLineArguments ( _
    Arguments As String _
) As IVsWindowFrame
IVsWindowFrame OpenComparisonWindowFromCommandLineArguments(
    string Arguments
)
IVsWindowFrame^ OpenComparisonWindowFromCommandLineArguments(
    [InAttribute] String^ Arguments
)
abstract OpenComparisonWindowFromCommandLineArguments : 
        Arguments:string -> IVsWindowFrame
function OpenComparisonWindowFromCommandLineArguments(
    Arguments : String
) : IVsWindowFrame

Parameters

  • Arguments
    Type: 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.

Remarks

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).

.NET Framework Security

See Also

Reference

IVsDifferenceService Interface

Microsoft.VisualStudio.Shell.Interop Namespace