Session.EventRetentionMode 속성
Gets or sets the EventRetentionMode object.
네임스페이스: Microsoft.SqlServer.Management.XEvent
어셈블리: Microsoft.SqlServer.Management.XEvent(Microsoft.SqlServer.Management.XEvent.dll)
구문
‘선언
<SfcPropertyAttribute(Data := True)> _
Public Property EventRetentionMode As Session.EventRetentionModeEnum
Get
Set
‘사용 방법
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)
속성 값
유형: Microsoft.SqlServer.Management.XEvent.Session.EventRetentionModeEnum
The EventRetentionMode object.
예외
예외 | 조건 |
---|---|
XEventException | The EventRetentionMode is set to an unknown value. |