다음을 통해 공유


VsShellUtilities.SaveFileIfDirty Method

Definition

Overloads

SaveFileIfDirty(IVsTextView)

If the file is dirty, saves it in the specified text view.

SaveFileIfDirty(IServiceProvider, String)

Saves the specified file if it is dirty.

SaveFileIfDirty(IVsTextView)

If the file is dirty, saves it in the specified text view.

public:
 static void SaveFileIfDirty(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view);
public:
 static void SaveFileIfDirty(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view);
 static void SaveFileIfDirty(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & view);
public static void SaveFileIfDirty (Microsoft.VisualStudio.TextManager.Interop.IVsTextView view);
static member SaveFileIfDirty : Microsoft.VisualStudio.TextManager.Interop.IVsTextView -> unit
Public Shared Sub SaveFileIfDirty (view As IVsTextView)
Public Sub SaveFileIfDirty (view As IVsTextView)

Parameters

view
IVsTextView

The view to be saved

Applies to

SaveFileIfDirty(IServiceProvider, String)

Saves the specified file if it is dirty.

public:
 static void SaveFileIfDirty(IServiceProvider ^ site, System::String ^ fullPath);
public static void SaveFileIfDirty (IServiceProvider site, string fullPath);
static member SaveFileIfDirty : IServiceProvider * string -> unit
Public Shared Sub SaveFileIfDirty (site As IServiceProvider, fullPath As String)
Public Sub SaveFileIfDirty (site As IServiceProvider, fullPath As String)

Parameters

site
IServiceProvider

The service provider.

fullPath
String

The full path of the file to be saved.

Applies to