Propriedade do RDL Session.EventRetentionMode
Gets or sets the EventRetentionMode object.
Namespace: Microsoft.SqlServer.Management.XEvent
Assembly: Microsoft.SqlServer.Management.XEvent (em Microsoft.SqlServer.Management.XEvent.dll)
Sintaxe
'Declaração
<SfcPropertyAttribute(Data := True)> _
Public Property EventRetentionMode As Session.EventRetentionModeEnum
Get
Set
'Uso
Dim instance As Session
Dim value As Session.EventRetentionModeEnum
value = instance.EventRetentionMode
instance.EventRetentionMode = value
[SfcPropertyAttribute(Data = true)]
public Session.EventRetentionModeEnum EventRetentionMode { get; set; }
[SfcPropertyAttribute(Data = true)]
public:
property Session.EventRetentionModeEnum EventRetentionMode {
Session.EventRetentionModeEnum get ();
void set (Session.EventRetentionModeEnum value);
}
[<SfcPropertyAttribute(Data = true)>]
member EventRetentionMode : Session.EventRetentionModeEnum with get, set
function get EventRetentionMode () : Session.EventRetentionModeEnum
function set EventRetentionMode (value : Session.EventRetentionModeEnum)
Valor da propriedade
Tipo: Microsoft.SqlServer.Management.XEvent.Session.EventRetentionModeEnum
The EventRetentionMode object.
Exceções
Exceção | Condição |
---|---|
XEventException | The EventRetentionMode is set to an unknown value. |