VsShellUtilities.SaveFileIfDirty Method (IServiceProvider, String)

Saves the specified file if it is dirty.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Shared Sub SaveFileIfDirty ( _
    site As IServiceProvider, _
    fullPath As String _
)
'使用
Dim site As IServiceProvider
Dim fullPath As String

VsShellUtilities.SaveFileIfDirty(site, fullPath)
public static void SaveFileIfDirty(
    IServiceProvider site,
    string fullPath
)
public:
static void SaveFileIfDirty(
    IServiceProvider^ site, 
    String^ fullPath
)
public static function SaveFileIfDirty(
    site : IServiceProvider, 
    fullPath : String
)

Parameters

Permissions

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

SaveFileIfDirty Overload

Microsoft.VisualStudio.Shell Namespace