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


In This Topic
    PermitOnly Method
    In This Topic
    Prevents callers higher in the call stack from using the code that calls this method to access all resources except for the resource specified by the current instance.
    Syntax
    'Declaration
     
    
    <System.Security.SecuritySafeCriticalAttribute()>
    Public Sub PermitOnly() 
    'Usage
     
    
    Dim instance As VistaDBDataPermission
     
    instance.PermitOnly()
    [System.Security.SecuritySafeCritical()]
    public void PermitOnly()
    Exceptions
    ExceptionDescription
    There is already an active System.Security.CodeAccessPermission.PermitOnly 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