开发者

Get ServerContext from web application on IIS

开发者 https://www.devze.com 2023-03-15 07:21 出处:网络
I have an asp.net web application that runs on IIS. Can i get the server context directly or i need to open a sharepoint web and开发者_如何学JAVA get it\'s context?

I have an asp.net web application that runs on IIS. Can i get the server context directly or i need to open a sharepoint web and开发者_如何学JAVA get it's context?

Is the ServerContext null?

If i can get it, how?

Thanks alot.


It appears that we can do it and the ServerContext is not null. We can use this:

Microsoft.Office.Server.ServerContext context = Microsoft.Office.Server.ServerContext.Current;
0

精彩评论

暂无评论...
验证码 换一张
取 消