VistaDB 5






VistaDB.DDA Namespace > IVistaDBDatabase Interface : TestDatabaseObjectName Method
Object name to test
Raises exception instead of returning test result value
TestDatabaseObjectName Method
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
)
function TestDatabaseObjectName( 
    name: System.String;
    raiseException: System.Boolean
): System.Boolean; 
function TestDatabaseObjectName( 
   name : System.String,
   raiseException : System.boolean
) : System.boolean;
System.bool TestDatabaseObjectName( 
   System.string* name,
   System.bool 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