Share via


SPIisWebServiceApplicationPool.UpgradeFromProcessIdentity method

Upgrades an SPProcessIdentity object to an SPIisWebServiceApplicationPool object.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function UpgradeFromProcessIdentity ( _
    processIdentity As SPProcessIdentity, _
    name As String _
) As SPIisWebServiceApplicationPool
'Usage
Dim processIdentity As SPProcessIdentity
Dim name As String
Dim returnValue As SPIisWebServiceApplicationPool

returnValue = SPIisWebServiceApplicationPool.UpgradeFromProcessIdentity(processIdentity, _
    name)
public static SPIisWebServiceApplicationPool UpgradeFromProcessIdentity(
    SPProcessIdentity processIdentity,
    string name
)

Parameters

  • name
    Type: System.String

    The application pool name. If an application pool with this name exists on the farm, then that application pool is returned.

Return value

Type: Microsoft.SharePoint.Administration.SPIisWebServiceApplicationPool
An SPIisWebServiceApplicationPoolobject.

Exceptions

Exception Condition
ArgumentNullException

The processIdentity or name parameter is a null reference (Nothing in Visual Basic).

See also

Reference

SPIisWebServiceApplicationPool class

SPIisWebServiceApplicationPool members

Microsoft.SharePoint.Administration namespace