Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Upgrades an SPProcessIdentity object to an SPIisWebServiceApplicationPool object.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
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