DataParameter.OnSizeChanging Method

Called when the Size 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 OnSizeChanging ( _
    value As Integer _
)
'Usage
Dim value As Integer 

Me.OnSizeChanging(value)
protected virtual void OnSizeChanging(
    int value
)
protected:
virtual void OnSizeChanging(
    int value
)
protected function OnSizeChanging(
    value : int
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

The parameter direction is In or the parameter size is fixed.

ArgumentOutOfRangeException

The parameter size is less than zero.

Remarks

The base implementation of this method ensures that the parameter direction is not In (in which case the size can be inferred from the actual value) and that the size is not fixed. It also ensures that the value is greater than or equal to zero.

.NET Framework Security

See Also

Reference

DataParameter Class

DataParameter Members

Microsoft.VisualStudio.Data.Framework Namespace

OnSizeChanged

SetSizeCore