共用方式為


SPUtility.ParseSqlType Method

Converts the string representation of a SqlDbType enumeration value to a SqlDbType enumeration value.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Shared Function ParseSqlType ( _
    type As String _
) As SqlDbType
'Usage
Dim type As String
Dim returnValue As SqlDbType

returnValue = SPUtility.ParseSqlType(type)
public static SqlDbType ParseSqlType(
    string type
)

Parameters

  • type
    Type: System.String

    The string representation of a SqlDbType enumeration value.

Return Value

Type: System.Data.SqlDbType
The enumeration value.

See Also

Reference

SPUtility Class

SPUtility Members

Microsoft.SharePoint.Utilities Namespace