http://msdn.microsoft.com/en-us/library/system.activationcontext.aspx
The above link shows an example of obtaining activationcontext of a current appdomain in C#.
There are something none specified in the article.
Actually, in order to have the code sample in the link run.
First, you have to create a manifest file for the application,
simply because the argument class retrieves information from it.
To do this, navigate to project property page -> application -> resource -> manifest,
choose or create one.
Second, you have to have to assign the code access security permission to
This is a full trust application.
To do this, navigate to project property page -> security.
0 件のコメント:
コメントを投稿