Share via


IEntryBucket2.Merge(IEntryBucket) Method

Definition

Merge two buckets created by Split() if possible.

public:
 Microsoft::VisualStudio::Shell::TableControl::IEntryBucket ^ Merge(Microsoft::VisualStudio::Shell::TableControl::IEntryBucket ^ child);
public Microsoft.VisualStudio.Shell.TableControl.IEntryBucket Merge (Microsoft.VisualStudio.Shell.TableControl.IEntryBucket child);
abstract member Merge : Microsoft.VisualStudio.Shell.TableControl.IEntryBucket -> Microsoft.VisualStudio.Shell.TableControl.IEntryBucket
Public Function Merge (child As IEntryBucket) As IEntryBucket

Parameters

child
IEntryBucket

The bucket with which to attempt the merge.

Returns

null if the buckets cannot be merged. Otherwise return a bucket that is equivalent to the this and child.

Remarks

Suppose the contents of the table control form the following tree of buckets and errors (where all the buckets except for the root were created by Split():

                  Root
       "D:"                 "E:"
"myproject"            "unittest"  "integrationtests"
Error1 Error2         Error3      Error4 Error5

In this case, will attempt to merge buckets "D:" and "myproject." There will be no attempt to merge "E:" and its children (since it has more than one). If the merge of "D:" and "myproject" succeeds, the the resulting tree will look like:

Root
    "D:\myproject"
        Error1
        Error2
    "E:"
        "unittest"
            Error3
        "integrationtests"
            Error4
            Error5

Applies to