CommandResult Class

Represents the result of executing a command that is returned by a command callback to indicate whether the command handler completed.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.Vsip.CommandResult

Namespace:  Microsoft.VisualStudio.TestTools.Vsip
Assembly:  Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)

Syntax

声明
Public Class CommandResult
public class CommandResult
public ref class CommandResult
type CommandResult =  class end
public class CommandResult

The CommandResult type exposes the following members.

Constructors

  Name Description
Public method CommandResult(Boolean) Initializes a new instance of the CommandResult class by using the provided indication of whether the command was completed.
Public method CommandResult(Boolean, String) Initializes a new instance of the CommandResult class by using the provided message and indication of whether the command was completed.

Top

Properties

  Name Description
Public property Completed Gets a value that indicates whether the command was successfully completed.
Public property Message Gets the message that contains the reason that the command was not successfully completed.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from 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 Serves as a hash function for a particular type. (Inherited from Object.)
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 a string that represents the current object. (Inherited from Object.)

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.TestTools.Vsip Namespace