Compartir a través de


Shrink Método

Shrinks a database file.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public Sub Shrink ( _
    newSizeInMB As Integer, _
    shrinkType As ShrinkMethod _
)
'Uso
Dim instance As DatabaseFile
Dim newSizeInMB As Integer
Dim shrinkType As ShrinkMethod

instance.Shrink(newSizeInMB, shrinkType)
public void Shrink(
    int newSizeInMB,
    ShrinkMethod shrinkType
)
public:
void Shrink(
    int newSizeInMB, 
    ShrinkMethod shrinkType
)
member Shrink : 
        newSizeInMB:int * 
        shrinkType:ShrinkMethod -> unit 
public function Shrink(
    newSizeInMB : int, 
    shrinkType : ShrinkMethod
)

Parámetros