_XDocument4.CloseDocument 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.
Closes the form.
public:
void CloseDocument();
public void CloseDocument ();
abstract member CloseDocument : unit -> unit
Public Sub CloseDocument ()
Implements
Examples
In the following example, the CloseDocument method of the XDocument object is used to close the current form.
_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisDoc.CloseDocument();
Dim thisDoc As _XDocument4 = DirectCast(_
thisXDocument, _XDocument4)
thisDoc.CloseDocument()
In the following example, the CloseDocument method of the XDocument object is used to close the current form.
_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisDoc.CloseDocument();
Dim thisDoc As _XDocument4 = DirectCast(_
thisXDocument, _XDocument4)
thisDoc.CloseDocument()
Remarks
Calling the CloseDocument method is equivalent to calling the Close(Object) method of the XDocuments3 collection.