Share via


DataParameter.OnValueChanging Method

Called when the Value property is about to change.

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

Syntax

'Declaration
Protected Overridable Sub OnValueChanging ( _
    value As Object _
)
protected virtual void OnValueChanging(
    Object value
)
protected:
virtual void OnValueChanging(
    Object^ value
)
abstract OnValueChanging : 
        value:Object -> unit  
override OnValueChanging : 
        value:Object -> unit
protected function OnValueChanging(
    value : Object
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

The parameter direction is Out or ReturnValue while the value parameter is not nulla null reference (Nothing in Visual Basic).

ArgumentException

The type of the value parameter is not valid.

Remarks

The base implementation of this method ensures that the parameter direction is not an Out or ReturnValue, unless the value is nulla null reference (Nothing in Visual Basic), and that the value is of a valid type.

.NET Framework Security

See Also

Reference

DataParameter Class

Microsoft.VisualStudio.Data.Framework Namespace

OnValueChanged