Share via


Audit.ReserveDiskSpace Property

Gets or sets the Boolean property value that specifies whether disk space is reserved for the audit file.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute> _
Public Property ReserveDiskSpace As Boolean
    Get
    Set
'Usage
Dim instance As Audit
Dim value As Boolean

value = instance.ReserveDiskSpace

instance.ReserveDiskSpace = value
[SfcPropertyAttribute]
public bool ReserveDiskSpace { get; set; }
[SfcPropertyAttribute]
public:
property bool ReserveDiskSpace {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute>]
member ReserveDiskSpace : bool with get, set
function get ReserveDiskSpace () : boolean
function set ReserveDiskSpace (value : boolean)

Property Value

Type: System.Boolean
A Boolean value that specifies whether disk space is reserved for the audit file.
If True, disk space, equal to the maximum file size, is reserved in advance; otherwise, False (default).

Remarks

This setting cannot be used when the MaximumFileSize property is set to unlimited.