强制获取文件读写权限
FileIOPermission permission = new FileIOPermission(FileIOPermissionAccess.AllAccess , _XmlFileFullName);
permission.Demand()
尝试强制获取,如果还是不行就报错。
FileIOPermission permission = new FileIOPermission(FileIOPermissionAccess.AllAccess , _XmlFileFullName);
permission.Demand()
尝试强制获取,如果还是不行就报错。