SPFarmConfigurationWizardSettings.DefaultWebApplication Property
Gets the default Web application.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Property DefaultWebApplication As SPWebApplication
Get
Friend Set
'Usage
Dim instance As SPFarmConfigurationWizardSettings
Dim value As SPWebApplication
value = instance.DefaultWebApplication
public SPWebApplication DefaultWebApplication { get; internal set; }
Property Value
Type: Microsoft.SharePoint.Administration.SPWebApplication
Returns the default Web application.
Remarks
Retrieves the default Web application in the farm, if one was designated as a default Web application. If there is no designated default Web application, retrieves the Web application at port 80, if one exists in the farm. If there is no default Web application, and there is no Web application at port 80, returns a null reference (Nothing in Visual Basic).
See Also
Reference
SPFarmConfigurationWizardSettings Class