Share via


DataParameter Class

Represents a data parameter that is derived from a data source command, or that is passed with a command to a data source.

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

Syntax

'Declaration
Public MustInherit Class DataParameter
'Usage
Dim instance As DataParameter
public abstract class DataParameter
public ref class DataParameter abstract
public abstract class DataParameter

Remarks

This class uses an indirect mechanism for implementing parameter properties. Each property get method calls a virtual protected method that retrieves the property. Each property set method, on the other hand, calls three virtual protected methods: one indicating that the property is changing, another actually changing the property, and a third indicating that the property has changed.

This allows the property setter to isolate the handling of invalid input in the property changing method, set the property, and apply any side effects in the property changed method. This also allows the base class to provide some default error checking to match the semantics defined by the parameter interface.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Data.DataParameter
    Microsoft.VisualStudio.Data.AdoDotNet.AdoDotNetParameter

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

DataParameter Members

Microsoft.VisualStudio.Data Namespace

AdoDotNetParameter