Share via


SystemDataTypeLookupBase.VarChar Method (Int32)

Gets the ISystemDataType object that represents the varchar data type and has the specified maximum length.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Function VarChar ( _
    maxLength As Integer _
) As ISystemDataType
'Usage
Dim instance As SystemDataTypeLookupBase
Dim maxLength As Integer
Dim returnValue As ISystemDataType

returnValue = instance.VarChar(maxLength)
public ISystemDataType VarChar(
    int maxLength
)
public:
ISystemDataType^ VarChar(
    int maxLength
)
member VarChar : 
        maxLength:int -> ISystemDataType 
public function VarChar(
    maxLength : int
) : ISystemDataType

Parameters

  • maxLength
    Type: System.Int32
    The maximum length of the data type.

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ISystemDataType
The ISystemDataType object that represents the varchar data type.