Friday, April 24, 2009

SPWebApplication IsAdministrationWebApplication Property

public virtual bool IsAdministrationWebApplication { get; set; }


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.

No comments: