SqlInt16.Parse Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Converts the String representation of a number to its 16-bit signed integer equivalent.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public static SqlInt16 Parse(
	string s


Type: System.String

The String to be parsed.

Return Value

Type: System.Data.SqlTypes.SqlInt16

A 16-bit signed integer equivalent to the value that is contained in the specified String.

.NET Framework
Available since 1.1
Return to top