VistaDB 6
VistaDB.Provider Namespace / VistaDBDataPermission Class / Assert Method


In This Topic
    Assert Method
    In This Topic
    Declares that the calling code can access the resource protected by a permission demand through the code that calls this method, even if callers higher in the stack have not been granted permission to access the resource. Using System.Security.CodeAccessPermission.Assert can create security issues.
    Syntax
    'Declaration
     
    
    <System.Security.SecuritySafeCriticalAttribute()>
    Public Sub Assert() 
    'Usage
     
    
    Dim instance As VistaDBDataPermission
     
    instance.Assert()
    [System.Security.SecuritySafeCritical()]
    public void Assert()
    Exceptions
    ExceptionDescription
    The calling code does not have System.Security.Permissions.SecurityPermissionFlag.Assertion. -or- There is already an active System.Security.CodeAccessPermission.Assert for the current frame.
    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