共用方式為


Admin.OptimizeDatabase Method

This method is used to perform some type of database optimization pass compacting and shrinking index's and data tables.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Sub OptimizeDatabase ( _
    optimizationFlags As Integer _
)
[WebMethodAttribute]
public void OptimizeDatabase(
    int optimizationFlags
)
[WebMethodAttribute]
public:
void OptimizeDatabase(
    int optimizationFlags
)
[<WebMethodAttribute>]
member OptimizeDatabase : 
        optimizationFlags:int -> unit
public function OptimizeDatabase(
    optimizationFlags : int
)

Parameters

  • optimizationFlags
    Type: System.Int32

    Reserved: These are reserved for optimization types.

.NET Framework Security

See Also

Reference

Admin Class

Microsoft.TeamFoundation.VersionControl.Server Namespace