QuerySaveResult Structure

Manages the results when there is a request to save the document, and encapsulates the results of a call to QuerySaveFiles.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

声明
<CLSCompliantAttribute(False)> _
Public Structure QuerySaveResult
[CLSCompliantAttribute(false)]
public struct QuerySaveResult
[CLSCompliantAttribute(false)]
public value class QuerySaveResult
[<Sealed>]
[<CLSCompliantAttribute(false)>]
type QuerySaveResult =  struct end
JScript supports the use of structures, but not the declaration of new ones.

The QuerySaveResult type exposes the following members.

Constructors

  Name Description
Public method QuerySaveResult Initializes a new instance of the QuerySaveResult structure.

Top

Properties

  Name Description
Public property CanSaveFile Gets the document and verifies whether it can be saved.
Public property ForceSaveAs Gets the document and converts the Save operation to the Save As operation.
Public property Result Gets the tagVSQuerySaveResult() flag, which determines whether the document can be saved.
Public property UserCanceled True iff the Save operation was canceled by the user.

Top

Methods

  Name Description
Public method Equals Compares the object to another object and verifies whether they are equal. (Overrides ValueType.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets the hash code for the object. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Operators

  Name Description
Public operatorStatic member Equality Verifies whether two arguments are equal.
Public operatorStatic member Inequality Verifies whether two arguments are unequal.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace