I need to get the size of web application using C#. Is there any way we can get the exact size of web application. With powershell it's feasible, but I want to use it in C#
Well, the Web Application itself does not really take up much space! It's just an IIS site on each SharePoint server in the farm. All content is stored in the SharePoint Content Databases. Hence, you can get the size by adding up the size of all attached databases.