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
value
Type: System.ObjectThe value that the Value property will be set to.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.