共用方式為


Session.IsRunning 屬性

Gets a value indicating whether this session is running.

命名空間:  Microsoft.SqlServer.Management.XEvent
組件:  Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)

語法

'宣告
<SfcPropertyAttribute(Data := True)> _
Public Property IsRunning As Boolean 
    Get 
    Private Set
'用途
Dim instance As Session 
Dim value As Boolean 

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

屬性值

型別:System.Boolean
Returns True if the session is running, otherwise False.

請參閱

參考

Session 類別

Microsoft.SqlServer.Management.XEvent 命名空間