Share via


SystemDataTypeLookupBase.Find Method (DataTypeSpec, Int32)

Retrieves the ISystemDataType object that has the specified data type specification and the specified precision or maximum length.

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

Syntax

'Declaration
Public Function Find ( _
    typeSpec As DataTypeSpec, _
    precisionOrMaxLength As Integer _
) As ISystemDataType
'Usage
Dim instance As SystemDataTypeLookupBase
Dim typeSpec As DataTypeSpec
Dim precisionOrMaxLength As Integer
Dim returnValue As ISystemDataType

returnValue = instance.Find(typeSpec, _
    precisionOrMaxLength)
public ISystemDataType Find(
    DataTypeSpec typeSpec,
    int precisionOrMaxLength
)
public:
virtual ISystemDataType^ Find(
    DataTypeSpec^ typeSpec, 
    int precisionOrMaxLength
) sealed
abstract Find : 
        typeSpec:DataTypeSpec * 
        precisionOrMaxLength:int -> ISystemDataType 
override Find : 
        typeSpec:DataTypeSpec * 
        precisionOrMaxLength:int -> ISystemDataType 
public final function Find(
    typeSpec : DataTypeSpec, 
    precisionOrMaxLength : int
) : ISystemDataType

Parameters

  • precisionOrMaxLength
    Type: System.Int32
    The precision or maximum length of the data type.

Return Value

Type: Microsoft.SqlServer.Management.SqlParser.Metadata.ISystemDataType
An ISystemDataType object; nulla null reference (Nothing in Visual Basic) if a matching system data type object cannot be found.

Implements

ISystemDataTypeLookup.Find(DataTypeSpec, Int32)