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.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public MustInherit Class DataParameter _
    Implements IVsDataParameter, IVsDataParameterDescriptor
'Usage
Dim instance As DataParameter
public abstract class DataParameter : IVsDataParameter, 
    IVsDataParameterDescriptor
public ref class DataParameter abstract : IVsDataParameter, 
    IVsDataParameterDescriptor
public abstract class DataParameter implements IVsDataParameter, IVsDataParameterDescriptor

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, however, 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.Framework.DataParameter
    Microsoft.VisualStudio.Data.Framework.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.Framework Namespace

AdoDotNetParameter