IsMetadataReadonly
Description
Returns a Bool indicating whether the session's metadata is read-only.
Syntax
VBScript
session.IsMetadataReadonly
Perl
$session->IsMetadataReadonly
();
- Identifier
- Description
- session
- The Session object that represents the current database-access session.
- Return value
- True if the metadata is read-only, otherwise False.
Examples
VBScript
set sessionObj = GetSession
If sessionObj.IsMetadataReadonly Then
' ...
End If
Perl
#Get a HCL Compass session
$sessionObj = $entity->GetSession();
#If the session's metadata is read-only, perform some action.
if ( $sessionObj->IsMetadataReadonly ) {
# ...
}