Share via


Session.AutoStart Property

Gets or sets a value indicating whether the AutoStart object is active or not.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property AutoStart As Boolean 
    Get 
    Set
'Usage
Dim instance As Session 
Dim value As Boolean 

value = instance.AutoStart

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

Property Value

Type: System.Boolean
Returns True if the AutoStart object is active, otherwise False.

See Also

Reference

Session Class

Microsoft.SqlServer.Management.XEvent Namespace