Venice
ArtGrp::SetExclAccess
 
Sets exclusive access on or off
 
VARIANT_BOOL SetExclAccess (
    VARIANT_BOOL bSet
)
 
Parameters
bSet
[in] True if you want to set exclusive access to the interface, false if you want to remove exclusive access.
 
Return value
True if setting/removing exclusive access to the interface succeeded, otherwise false.
 
Remarks
A conflict dialogue is shown when a conflict occurred setting the exclusive access, except when the application was started without user interface (see parameter bWithUserInterface in the Logon method.).
If this method is called twice with the same value for bSet an exception is thrown.
 
See Also
CreateArtGrp
 
Samples
 
C++
 
if (pArtGrp->SetExclAccess (VARIANT_TRUE))
{
    // Execute necessary code
    
    pArtGrp->SetExclAccess (VARIANT_FALSE);
}

C#
 
if (oArtGrp.SetExclAccess (true))
{
    // Execute necessary code
    
    oArtGrp.SetExclAccess (false);
}

VBS
 
If oArtGrp.SetExclAccess(True) Then
    ' Execute necessary code
    
    Call oArtGrp.SetExclAccess(False)
End If

VB.NET
 
If oArtGrp.SetExclAccess(True) Then
    ' Execute necessary code
    
    oArtGrp.SetExclAccess(False)
End If