返回頁首
System.Security.Cryptography.Xml
該命名空間已經開始支持 XML 加密。有關使用 XML 簽名和 XML 加密來安全交換數據的信息,請參閱 2004 年 11 月號的 MSDN Magazine 中 Mike Downen 和 Shawn Farkas 的文章 Exchange Data More Securely with XML Signatures and Encryption。
返回頁首
System.Diagnostics
除了許多新的跟蹤和調試功能、更完美的事件日志支持乃至 Stopwatch,在 Process 類內還潛伏著一個隱藏的“珍寶”:不必顯式使用 P/Invoke 就能調用 CreateProcessWithLogonW。這是 Windows 中的“run as”功能,開發人員在測試時總是使用替換憑據來運行程序,F在很容易從托管代碼中以編程方式使用它:
void RunNotepadAsThisUser(string authority,
string principal, SecureString password)
{
Process.Start(@"c:\windows\notepad.exe",
principal, password, authority).Dispose();
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/