VistaDB 6
VistaDB.DDA Namespace / IVistaDBDatabase Interface / TestDatabaseObjectName Method
Object name to test
Raises exception instead of returning test result value


In This Topic
    TestDatabaseObjectName Method
    In This Topic
    Test if name of table, column, index etc. is correct
    Syntax
    'Declaration
     
    
    Function TestDatabaseObjectName( _
       ByVal name As System.String, _
       ByVal raiseException As System.Boolean _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As IVistaDBDatabase
    Dim name As System.String
    Dim raiseException As System.Boolean
    Dim value As System.Boolean
     
    value = instance.TestDatabaseObjectName(name, raiseException)
    System.bool TestDatabaseObjectName( 
       System.string name,
       System.bool raiseException
    )

    Parameters

    name
    Object name to test
    raiseException
    Raises exception instead of returning test result value

    Return Value

    Test status
    Exceptions
    ExceptionDescription
    Raises VistaDBException with Errors.dda_InvalidName error
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also