SPWebApplication IsAdministrationWebApplication Property

Syntax:
public virtual bool IsAdministrationWebApplication { get; set; }

Usage:
site.WebApplication.IsAdministrationWebApplication

Details:
Gets or sets a Boolean value specifying whether the Web application is the Central Administration application.

This property is very useful during applying any specific feature on a web.
For instance, if one doesn't want to apply custom branding feature on CA... check this property and then apply branding if it is not Central Admin (if the requirement says not to apply branding on CA). Other places, use your discretion.

Comments