duration - property in ROOT\WMI namespace

duration in other namespaces

List of classes with duration local property in ROOT\WMI namespace

propertyClassOrigin
durationattentionattention
durationauto_statsauto_stats
durationbackground_job_errorbackground_job_error
durationblocked_process_reportblocked_process_report
durationbroker_activationbroker_activation
durationcdc_sessioncdc_session
durationdatabase_file_size_changedatabase_file_size_change
durationexecution_warningexecution_warning
durationexisting_connectionexisting_connection
durationfile_read_completedfile_read_completed
durationfile_write_completedfile_write_completed
durationhadr_database_flow_control_actionhadr_database_flow_control_action
durationhadr_transport_flow_control_actionhadr_transport_flow_control_action
durationHvLivedumpHvLivedump
durationlatch_suspend_endlatch_suspend_end
durationlatch_suspend_warninglatch_suspend_warning
durationlock_acquiredlock_acquired
durationlock_cancellock_cancel
durationlock_deadlocklock_deadlock
durationlock_redo_blockedlock_redo_blocked
durationlock_redo_unblockedlock_redo_unblocked
durationlock_releasedlock_released
durationlock_timeoutlock_timeout
durationlock_timeout_greater_than_0lock_timeout_greater_than_0
durationlog_flush_completelog_flush_complete
durationlog_io_completelog_io_complete
durationlogoutlogout
durationlong_io_detectedlong_io_detected
durationmodule_endmodule_end
durationoledb_calloledb_call
durationoledb_data_readoledb_data_read
durationoledb_query_interfaceoledb_query_interface
durationpreconnect_completedpreconnect_completed
durationprogress_report_online_index_operationprogress_report_online_index_operation
durationquery_post_compilation_showplanquery_post_compilation_showplan
durationquery_post_execution_showplanquery_post_execution_showplan
durationrpc_completedrpc_completed
durationsp_statement_completedsp_statement_completed
durationspinlock_backoffspinlock_backoff
durationsql_batch_completedsql_batch_completed
durationsql_statement_completedsql_statement_completed
durationsql_transactionsql_transaction
durationtask_completedtask_completed
durationwait_completedwait_completed
durationwait_infowait_info
durationwait_info_externalwait_info_external

Code samples for duration property

Get instance of WMI class using GetObject, duration property of hadr_database_flow_control_action

Short VBS code - get a single specified instance of hadr_database_flow_control_action class or get a default unnamed instance (singleton) of the class, using one single command GetObject with exact path of the wmi object.

'https://wutils.com/wmi/
Dim wmiObject
Set wmiObject = GetObject( _
 "WINMGMTS:\\.\ROOT\WMI:" + _
 "hadr_database_flow_control_action.PropertyName=""SomeText""")
Wscript.Echo wmiObject.duration 'or other property name, see properties
See more VBS samples of hadr_database_flow_control_action class

WMI query - sample windows WQL with C#, duration property of hadr_database_flow_control_action

Get a specified instance of hadr_database_flow_control_action by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this c# sample code.
See in another language: VBScript, VB.Net.
//https://wutils.com/wmi/

//Project -> Add reference -> System.Management
//using System.Management;

//create a management scope object
ManagementScope scope = new ManagementScope("\\\\.\\ROOT\\WMI");

//create object query
ObjectQuery query = new ObjectQuery("SELECT * FROM hadr_database_flow_control_action Where PropertyName=\"SomeText\"");

//create object searcher
ManagementObjectSearcher searcher =
                        new ManagementObjectSearcher(scope, query);

//get a collection of WMI objects
ManagementObjectCollection queryCollection = searcher.Get();

//enumerate the collection.
foreach (ManagementObject m in queryCollection) 
{
  // access properties of the WMI object
  Console.WriteLine("duration : {0}", m["duration"]);
  
}

WMI query - sample windows WQL with VB.Net, duration property of hadr_database_flow_control_action

Get a specified instance of hadr_database_flow_control_action by a key, get a default unnamed instance (singleton) of the class or list instances of the class by wmi query using this VB.Net sample code.
See in another language: VBScript, C#
'Project -> Add reference -> System.Management
'Imports System.Management

'Get the namespace management scope
Dim Scope As New ManagementScope("\\.\ROOT\WMI")

'Get a result of WML query 
Dim Query As New ObjectQuery("SELECT * FROM hadr_database_flow_control_action Where PropertyName="SomeText"")

'Create object searcher
Dim Searcher As New ManagementObjectSearcher(Scope, Query)

'Get a collection of WMI objects
Dim queryCollection As ManagementObjectCollection = Searcher.Get

'Enumerate wmi object 
For Each mObject As ManagementObject In queryCollection
  'write out some property value
  Console.WriteLine("duration : {0}", mObject("duration"))
Next
comments powered by Disqus
WUtils.com