DataParameter.OnDirectionChanging Method
Called when the Direction 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 OnDirectionChanging ( _
value As DataParameterDirection _
)
protected virtual void OnDirectionChanging(
DataParameterDirection value
)
protected:
virtual void OnDirectionChanging(
DataParameterDirection value
)
abstract OnDirectionChanging :
value:DataParameterDirection -> unit
override OnDirectionChanging :
value:DataParameterDirection -> unit
protected function OnDirectionChanging(
value : DataParameterDirection
)
Parameters
value
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.DataParameterDirectionThe value that the property Direction will be set to, from among those defined in the DataParameterDirection enumeration.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The parameter direction is Unknown or is not supported. |
Remarks
The base implementation of this method ensures that the value is not equal to Unknown and calls the IsSupportedDirection method to test whether the parameter direction is supported.
.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.