次の方法で共有


IVsDifferenceService.OpenComparisonWindowFromCommandLineArguments Method

Definition

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

public:
 Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ OpenComparisonWindowFromCommandLineArguments(System::String ^ Arguments);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ OpenComparisonWindowFromCommandLineArguments(Platform::String ^ Arguments);
Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame OpenComparisonWindowFromCommandLineArguments(std::wstring const & Arguments);
public Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame OpenComparisonWindowFromCommandLineArguments (string Arguments);
abstract member OpenComparisonWindowFromCommandLineArguments : string -> Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame
Public Function OpenComparisonWindowFromCommandLineArguments (Arguments As String) As IVsWindowFrame

Parameters

Arguments
String

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

Returns

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

Applies to