Partager via


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 _
)
protected virtual void OnSizeChanging(
    int value
)
protected:
virtual void OnSizeChanging(
    int value
)
abstract OnSizeChanging : 
        value:int -> unit  
override OnSizeChanging : 
        value:int -> unit
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

Microsoft.VisualStudio.Data.Framework Namespace

OnSizeChanged

SetSizeCore