IisWebServiceApplicationPoolSection.GetOrCreateApplicationPool Method

Constructs or retrieves the SPIisWebServiceApplicationPool object based on the control state. If the user has selected an existing application pool, the object is returned. If the user has selected to create a new application pool, the application pool is created and returned.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Function GetOrCreateApplicationPool As SPIisWebServiceApplicationPool
'Usage
Dim instance As IisWebServiceApplicationPoolSection
Dim returnValue As SPIisWebServiceApplicationPool

returnValue = instance.GetOrCreateApplicationPool()
public SPIisWebServiceApplicationPool GetOrCreateApplicationPool()

Return Value

Type: Microsoft.SharePoint.Administration.SPIisWebServiceApplicationPool
The GetOrCreateApplicationPool() selected based on the control state.

See Also

Reference

IisWebServiceApplicationPoolSection Class

IisWebServiceApplicationPoolSection Members

Microsoft.SharePoint.WebControls Namespace