Delen via


IServerConfigurationFacet.MediaRetention Property

Gets the MediaRetention property value.

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

Syntax

'Declaration
<PostConfigurationActionAttribute(PostConfigurationAction.RestartService)> _
Property MediaRetention As Integer
    Get
    Set
'Usage
Dim instance As IServerConfigurationFacet
Dim value As Integer

value = instance.MediaRetention

instance.MediaRetention = value
[PostConfigurationActionAttribute(PostConfigurationAction.RestartService)]
int MediaRetention { get; set; }
[PostConfigurationActionAttribute(PostConfigurationAction::RestartService)]
property int MediaRetention {
    int get ();
    void set (int value);
}
[<PostConfigurationActionAttribute(PostConfigurationAction.RestartService)>]
abstract MediaRetention : int with get, set
function get MediaRetention () : int
function set MediaRetention (value : int)

Property Value

Type: System.Int32
Int32