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
processIdentity
Type: Microsoft.SharePoint.Administration.SPProcessIdentityThe SPProcessIdentityobject to upgrade.
name
Type: System.StringThe 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