Share via


DataParameter.Parse Method

Disassembles a parameter value in a string format and converts the value to the correct type.

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

Syntax

'Declaration
Public MustOverride Sub Parse ( _
    value As String _
)
public abstract void Parse(
    string value
)
public:
virtual void Parse(
    String^ value
) abstract
abstract Parse : 
        value:string -> unit
public abstract 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 to its correct data type. In some cases, the parameter type must be set correctly before calling this method in order to indicate how the value should be interpreted. For example, when the value passed in could be converted to multiple data source–specific types, initially setting the type indicates which of the various types the parameter should be set to.

Notes to Inheritors

The derived class must override this method.

.NET Framework Security

See Also

Reference

DataParameter Class

Microsoft.VisualStudio.Data.Framework Namespace