CodeModel2.Synchronize Method

Definition

Ensures that all current code model events have been raised and the model has finished being generated.

public:
 void Synchronize();
public:
 void Synchronize();
void Synchronize();
[System.Runtime.InteropServices.DispId(200)]
public void Synchronize ();
[<System.Runtime.InteropServices.DispId(200)>]
abstract member Synchronize : unit -> unit
Public Sub Synchronize ()
Attributes

Remarks

The order of these events is not guaranteed and handlers may receive the events after Synchronize has returned.

When called from the CodeModel2 object, the code model for the entire project should be synchronized.

Note

The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same.

Applies to