Get current/active security zone of a .NET application?

后端 未结 3 1462
伪装坚强ぢ
伪装坚强ぢ 2021-01-12 19:03

I have an application that behaves oddly, and just to verify, I\'d like to see which security zone it is currently running under.

I\'ve found the System.Security.Sec

3条回答
  •  孤独总比滥情好
    2021-01-12 19:49

    You can also use

    Evidence e = Thread.CurrentThread.GetType().Assembly.Evidence;
    

    instead of

    this.GetType().Assembly.Evidence
    

提交回复
热议问题