共用方式為


SPWebApplication.RenameApplicationPool Method

Renames the application pool on all servers and updates the database.

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

Syntax

'Declaration
Public Sub RenameApplicationPool ( _
    newName As String _
)
'Usage
Dim instance As SPWebApplication
Dim newName As String

instance.RenameApplicationPool(newName)
public void RenameApplicationPool(
    string newName
)

Parameters

  • newName
    Type: System.String

    The new name for the application pool.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace