Saves the file in the specified text view if it is dirty.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Shared Sub SaveFileIfDirty ( _
view As IVsTextView _
)
'使用
Dim view As IVsTextView
VsShellUtilities.SaveFileIfDirty(view)
public static void SaveFileIfDirty(
IVsTextView view
)
public:
static void SaveFileIfDirty(
IVsTextView^ view
)
public static function SaveFileIfDirty(
view : IVsTextView
)
Parameters
view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextViewThe IVsTextView interface of the file to be saved.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.