Compartilhar via


AdoDotNetParameter.Parse Method

Gets the DbType and attempts to parse the input string value into the correct type by using primitive type conversions (like Byte.Parse and Int32.Parse).

Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Overrides Sub Parse ( _
    value As String _
)
public override void Parse(
    string value
)
public:
virtual void Parse(
    String^ value
) override
abstract Parse : 
        value:string -> unit  
override Parse : 
        value:string -> unit
public override function Parse(
    value : String
)

Parameters

  • value
    Type: System.String

    A string representation of a parameter value.

Implements

IVsDataParameter.Parse(String)

Remarks

This method is provided for scenarios in which a user has entered a parameter value as a string and it needs to be set later to the correct data type. You must set the parameter type correctly before calling this method, to indicate how the value should be interpreted.

.NET Framework Security

See Also

Reference

AdoDotNetParameter Class

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace