在Asp.net代码中Impersonate的命名空间是什么? [英] What is the namespace for Impersonate in Asp.net code behind?

查看:57
本文介绍了在Asp.net代码中Impersonate的命名空间是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Asp.net代码中Impersonate的命名空间是什么?我正在通过asp.net中的c#代码运行窗口服务。



添加几个名称空间

What is the namespace for Impersonate in Asp.net code behind? I am running a window service via c# code in asp.net.

Added few namespaces

using System.Runtime.InteropServices; // DllImport
using System.Security.Principal; // WindowsImpersonationContext
using System.Security.Permissions; // PermissionSetAttribute









但是没有用。





But didn't work.

推荐答案

看看这个: C#.NET中的完整模拟演示 [ ^ ]


参考以下链接: -

http: //ryanschlagel.wordpress.com/2012/10/28/c-net-impersonation/ [ ^ ]

http://metah.ch/blog/2010/10/impersonation-with-c-2/ [ ^ ]

http://www.afterlogic.com/mailbee-net/docs/MailBee.Security.Impersonation.html [ ^ ]

http://www.codeassociate.com/caapi/html/T_CA_Common_Security_Impersonate.htm [ ^ ]
refer below links:-
http://ryanschlagel.wordpress.com/2012/10/28/c-net-impersonation/[^]
http://metah.ch/blog/2010/10/impersonation-with-c-2/[^]
http://www.afterlogic.com/mailbee-net/docs/MailBee.Security.Impersonation.html[^]
http://www.codeassociate.com/caapi/html/T_CA_Common_Security_Impersonate.htm[^]


请参阅:< a href =https://support.microsoft.com/kb/306158> https://support.microsoft.com/kb/306158 [ ^ ]


这篇关于在Asp.net代码中Impersonate的命名空间是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆