Sharepoint 2010 Articles

Submit Article
Home » Articles » Sharepoint 2010 » Development and ProgrammingRSS Feeds

SPWebApplication Class in SharePoint

Posted By: Destin Joy     Category: Sharepoint 2010     Views: 2305

In this article I am giving you an introduction on SPWebApplication class. Most of the developers are naive about this class definitely this will give an introduction on the class

The SPWebApplication objects represents a SharePoint Web Application, which essentially is an IIS virtual server. Using this class we can do some high level operations. Please find some of the actions you can perform.

·         Create a web application

·         Collect all the features in a particular web application

·         Delete a web application

·         Some administrative task for the web application.

Below is a small example to delete a web application

SPWebApplication MyWebApplication = SPWebApplication.Lookup(new Uri("URL Web application URL "));


You can also use SpWebApplication to set the maximum file size or per-user alert settings for a web application

MyWebApplication.MaximumFileSize = 50;

MyWebApplication.AlertsMaximum = 500;




Didn't find what you were looking for? Find more on SPWebApplication Class in SharePoint Or get search suggestion and latest updates.

Destin Joy
Destin Joy author of SPWebApplication Class in SharePoint is from Pathanamthitta, India. Destin Joy says

 Hello Everyone,

I am Destin Joy from India I have MCPD in SharePoint 2010, MCTS SharePoint 2010 application development and MCTS in SharePoint 2007. I am mostly working in  core part of SharePoint (2010-2007) and passionate about new Microsoft technologies. Born and brought up in Kerala You can reach me  @ Destin.Joy@hotmail.com


View All Articles

Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

No Comment Found, Be the First to post comment!