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


In This Topic
    Demand Method
    In This Topic
    Forces a System.Security.SecurityException at run time if all callers higher in the call stack have not been granted the permission specified by the current instance.
    Syntax
    'Declaration
     
    
    <System.Security.SecuritySafeCriticalAttribute()>
    Public Sub Demand() 
    'Usage
     
    
    Dim instance As VistaDBDataPermission
     
    instance.Demand()
    [System.Security.SecuritySafeCritical()]
    public void Demand()
    Exceptions
    ExceptionDescription
    A caller higher in the call stack does not have the permission specified by the current instance. -or- A caller higher in the call stack has called System.Security.CodeAccessPermission.Deny on the current permission object.
    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