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
value
Type: System.Int32The value to which the Size property will be set.
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
- 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.