DataParameter.GetTypeFrom Method
Infers the data source–specific parameter type from a parameter value.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Protected Overridable Function GetTypeFrom ( _
value As Object _
) As String
protected virtual string GetTypeFrom(
Object value
)
protected:
virtual String^ GetTypeFrom(
Object^ value
)
abstract GetTypeFrom :
value:Object -> string
override GetTypeFrom :
value:Object -> string
protected function GetTypeFrom(
value : Object
) : String
Parameters
- value
Type: System.Object
A candidate parameter value.
Return Value
Type: System.String
The data source–specific type, or nulla null reference (Nothing in Visual Basic) if the value type is not supported.
Remarks
This method is called by the base implementation of OnValueChanged methods.
The OnValueChanging method calls this method to determine whether the value is of a valid type. The OnValueChanged method calls this method to set the type appropriately based on the new value (unless the type was explicitly set otherwise).
The base implementation of this method returns the .NET Framework type name.
.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.