共用方式為


AsyncSaveResult Class

Definition

Represents the results of an asynchronous save operation

public class AsyncSaveResult : Microsoft.VisualStudio.Shell.Interop.IVsAsyncSaveResult
type AsyncSaveResult = class
    interface IVsAsyncSaveResult
Public Class AsyncSaveResult
Implements IVsAsyncSaveResult
Inheritance
AsyncSaveResult
Implements

Remarks

A default-constructed AsyncSaveResult describes a completed save operation with no data loss, saved to its original filename (i.e. FileName is null).

Constructors

AsyncSaveResult()

Fields

Canceled

Represents a save operation that was canceled.

Success

Represents a a completed save operation with no data loss, saved to its original filename (i.e. FileName is null).

Properties

DataLossIncurred

This is set to true if the save was successful but there was data loss.

FileName

The name of the saved file. This can be null or empty if the name of the saved file did not change.

SaveCanceled

This is set to true if the user canceled the save operation.

Methods

FromInterface(IVsAsyncSaveResult)

Creates an AsyncSaveResult whose contents mirror those of an IVsAsyncSaveResult.

Applies to