Source.Close Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the source file can be closed.
public:
bool Close();
public:
bool Close();
bool Close();
public bool Close ();
member this.Close : unit -> bool
Public Function Close () As Boolean
Returns
true
if the source file can be closed; otherwise, returns false
.
Remarks
The Source class maintains an internal counter that is incremented for each call to the Open method and decremented for each call to Close method. When the internal counter reaches 0, Close returns true
. This method is called from the RemoveAdornments method when a view has been closed.
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 (which is done in the RemoveAdornments method).