小编joh*_*hny的帖子

如何尝试捕捉未找到的装配

好吧,说我有这样的应用程序:

using System;
using AliensExist; // some DLL which can't be found...
Run Code Online (Sandbox Code Playgroud)

我想的是,如果大会DLL AlienExist无法找到该应用程序将不会返回一个错误 - 而是被"trycatched"这就是说,...:

using System;
try{
using AliensExist; // some DLL which can't be found...
} catch {}
Run Code Online (Sandbox Code Playgroud)

怎么做?我知道use关键字以后不能使用...但我现在太懒了测试它.

10倍!

.net c#

8
推荐指数
1
解决办法
6786
查看次数

如果在没有管理员权限的情况下打开UAC,程序是否可以写入磁盘的根目录?

如果我不是管理员并启动一个写入C:\某些文本文件的程序 - 我是否需要管理员权限...在Windows 7或Vista中?我在XP中看到写入包括system32在内的任何文件夹都没有问题 - 但我不确定.NET中的程序是否能够在没有管理员权限的情况下执行此操作.

windows security winapi uac windows-vista

0
推荐指数
1
解决办法
5604
查看次数

标签 统计

.net ×1

c# ×1

security ×1

uac ×1

winapi ×1

windows ×1

windows-vista ×1