次の方法で共有


Source.Open Method

Definition

Marks the Source object as being open.

public:
 void Open();
public:
 void Open();
void Open();
public void Open ();
member this.Open : unit -> unit
Public Sub Open ()

Remarks

This method increments an internal counter to indicate the object is open. This method is called from the AddAdornments method to ensure the Source object is kept open while there are views open on the source file. For every call to the Open method, there must be a corresponding call to the Close method.

Multiple views can be opened on the same Source object. When all views on a particular Source object are closed, the Source object itself can be disposed of (which is handled in the RemoveAdornments method).

Applies to