次の方法で共有


VsShellUtilities.SaveFileIfDirty Method (IServiceProvider, String)

Saves the specified file if it is dirty.

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

Syntax

'宣言
Public Shared Sub SaveFileIfDirty ( _
    site As IServiceProvider, _
    fullPath As String _
)
public static void SaveFileIfDirty(
    IServiceProvider site,
    string fullPath
)

Parameters

.NET Framework Security

See Also

Reference

VsShellUtilities Class

SaveFileIfDirty Overload

Microsoft.VisualStudio.Shell Namespace