共用方式為


IVsFileMergeService.OpenAndRegisterMergeWindow Method

Definition

Opens a three way merge window to perform a three way merge operation.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame ^ OpenAndRegisterMergeWindow(System::String ^ leftFileMoniker, System::String ^ rightFileMoniker, System::String ^ baseFileMoniker, System::String ^ resultFileMoniker, System::String ^ leftFileTag, System::String ^ rightFileTag, System::String ^ baseFileTag, System::String ^ resultFileTag, System::String ^ leftFileLabel, System::String ^ rightFileLabel, System::String ^ baseFileLabel, System::String ^ resultFileLabel, System::String ^ serverGuid, System::String ^ leftFileSpec, System::String ^ rightFileSpec, [Runtime::InteropServices::Out] int % cookie);
Microsoft::VisualStudio::Shell::Interop::IVsWindowFrame OpenAndRegisterMergeWindow(std::wstring const & leftFileMoniker, std::wstring const & rightFileMoniker, std::wstring const & baseFileMoniker, std::wstring const & resultFileMoniker, std::wstring const & leftFileTag, std::wstring const & rightFileTag, std::wstring const & baseFileTag, std::wstring const & resultFileTag, std::wstring const & leftFileLabel, std::wstring const & rightFileLabel, std::wstring const & baseFileLabel, std::wstring const & resultFileLabel, std::wstring const & serverGuid, std::wstring const & leftFileSpec, std::wstring const & rightFileSpec, [Runtime::InteropServices::Out] int & cookie);
public Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame OpenAndRegisterMergeWindow (string leftFileMoniker, string rightFileMoniker, string baseFileMoniker, string resultFileMoniker, string leftFileTag, string rightFileTag, string baseFileTag, string resultFileTag, string leftFileLabel, string rightFileLabel, string baseFileLabel, string resultFileLabel, string serverGuid, string leftFileSpec, string rightFileSpec, out int cookie);
abstract member OpenAndRegisterMergeWindow : string * string * string * string * string * string * string * string * string * string * string * string * string * string * string * int -> Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame
Public Function OpenAndRegisterMergeWindow (leftFileMoniker As String, rightFileMoniker As String, baseFileMoniker As String, resultFileMoniker As String, leftFileTag As String, rightFileTag As String, baseFileTag As String, resultFileTag As String, leftFileLabel As String, rightFileLabel As String, baseFileLabel As String, resultFileLabel As String, serverGuid As String, leftFileSpec As String, rightFileSpec As String, ByRef cookie As Integer) As IVsWindowFrame

Parameters

leftFileMoniker
String

[in] The left file path.

rightFileMoniker
String

[in] The right file path.

baseFileMoniker
String

[in] The base file path.

resultFileMoniker
String

[in] The result file path where the merge results are to be stored.

leftFileTag
String

[in] The tag for the left file.

rightFileTag
String

[in] The tag for the right file.

baseFileTag
String

[in] The tag for the base file.

resultFileTag
String

[in] The tag for the result file.

leftFileLabel
String

[in] The label for the left file.

rightFileLabel
String

[in] The label for the right file.

baseFileLabel
String

[in] The label for the base file.

resultFileLabel
String

[in] The label for the result file.

serverGuid
String

[in] The server GUID for which this method is called (can be empty). This parameter is used to make special features, such as history and annotate, available.

leftFileSpec
String

[in] The server file specification for the left file. This parameter is used to make special features, such as history and annotate, available.

rightFileSpec
String

[in] The server file specification for the right file. This parameter is used to make special features, such as history and annotate, available.

cookie
Int32

[out] A cookie for the window that was created.

Returns

The IVsWindowFrame for the merge window that was created.

Applies to