DataCommandType Class

Represents a set of predefined data command types.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.DataCommandType

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Public NotInheritable Class DataCommandType
public sealed class DataCommandType
public ref class DataCommandType sealed
[<Sealed>]
type DataCommandType =  class end
public final class DataCommandType

The DataCommandType type exposes the following members.

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

Fields

  Name Description
Public fieldStatic member Prepared Indicates a prepared command type, where the command text is an identifier previously returned by a call to the Prepare method.
Public fieldStatic member Procedure Indicates a procedure command type, where the command text is the name of the procedure to be executed.
Public fieldStatic member ScalarFunction Indicates a scalar function command type, where the command text is the identifier of a function to be executed that returns a scalar value.
Public fieldStatic member Table Indicates a table command type, where the command text is the identifier of a table from which all results should be retrieved.
Public fieldStatic member TabularFunction Indicates a tabular function command type, where the command text is the identifier of a function to execute that returns a result set.
Public fieldStatic member Text Indicates a text command type, where the command text should be native code understood by the DDEX provider, for example, SQL.

Top

Remarks

The set of command types defined by this class are not intended to be a complete list but rather a simple means for identifying base types likely to be supported by many DDEX providers. For future additions, the numbers 1-99 are reserved for values in this enumeration. Numbers 100+ can be used for provider-specific command types.

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.Data Namespace

DataCommand