Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Premission d’accès aux fichier avec ‘FileIOPermissionAccess.AllAccess’

Exemple,d'utilisation,de,'PermissionSet'
{filelink=17838}

using System;
using System.Collections.Generic;
using System.Text;
using System.Security;
using System.Security.Permissions;
 
class PermissionFich {
    static void Main(string[] args)
	{
        CodeAccessPermission permissionA = new FileIOPermission(FileIOPermissionAccess.AllAccess, "f:");
        CodeAccessPermission permissionB = new FileIOPermission(FileIOPermissionAccess.Read, @"f:test");
 
    }
}

No comments yet.

Leave a Comment