Partager via


ProjectRootElement.Save Method

Definition

Saves the project, if modified, to the file system.

Overloads

Save()

Save the project to the file system, if dirty. Uses the Encoding returned by the Encoding property. Creates any necessary directories. May throw IO-related exceptions. Clears the dirty flag.

Save(TextWriter)

Save the project to the provided TextWriter, whether or not it is dirty. Uses the encoding of the TextWriter. Clears the Dirty flag.

Save(String)

Save the project to the file system, if dirty or the path is different. Creates any necessary directories. May throw IO related exceptions. Clears the Dirty flag.

Save(Encoding)

Save the project to the file system, if dirty. Creates any necessary directories. May throw IO-related exceptions. Clears the dirty flag.

Save(String, Encoding)

Save the project to the file system, if dirty or the path is different. Creates any necessary directories. May throw IO related exceptions. Clears the Dirty flag.

Save()

Source:
ProjectRootElement.cs

Save the project to the file system, if dirty. Uses the Encoding returned by the Encoding property. Creates any necessary directories. May throw IO-related exceptions. Clears the dirty flag.

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

Remarks

Uses the character Encoding returned by the Encoding property. Marks the project as unmodified.

Applies to

Save(TextWriter)

Source:
ProjectRootElement.cs

Save the project to the provided TextWriter, whether or not it is dirty. Uses the encoding of the TextWriter. Clears the Dirty flag.

public:
 void Save(System::IO::TextWriter ^ writer);
public void Save (System.IO.TextWriter writer);
member this.Save : System.IO.TextWriter -> unit
Public Sub Save (writer As TextWriter)

Parameters

writer
TextWriter

The text writer to write the project to.

Remarks

Uses the character encoding of the TextWriter. Marks the project as unmodified.

Applies to

Save(String)

Source:
ProjectRootElement.cs

Save the project to the file system, if dirty or the path is different. Creates any necessary directories. May throw IO related exceptions. Clears the Dirty flag.

public:
 void Save(System::String ^ path);
public void Save (string path);
member this.Save : string -> unit
Public Sub Save (path As String)

Parameters

path
String

The file path to the project in storage.

Remarks

Marks the project as unmodified.

Applies to

Save(Encoding)

Source:
ProjectRootElement.cs

Save the project to the file system, if dirty. Creates any necessary directories. May throw IO-related exceptions. Clears the dirty flag.

public:
 void Save(System::Text::Encoding ^ saveEncoding);
public void Save (System.Text.Encoding saveEncoding);
member this.Save : System.Text.Encoding -> unit
Public Sub Save (saveEncoding As Encoding)

Parameters

saveEncoding
Encoding

The character encoding used to save the project.

Remarks

Marks the project as unmodified.

Applies to

Save(String, Encoding)

Source:
ProjectRootElement.cs

Save the project to the file system, if dirty or the path is different. Creates any necessary directories. May throw IO related exceptions. Clears the Dirty flag.

public:
 void Save(System::String ^ path, System::Text::Encoding ^ encoding);
public void Save (string path, System.Text.Encoding encoding);
member this.Save : string * System.Text.Encoding -> unit
Public Sub Save (path As String, encoding As Encoding)

Parameters

path
String

The file path to the project in storage.

encoding
Encoding

The character encoding used to save the project.

Remarks

Marks the project as unmodified.

Applies to