message_log_id - property in ROOT\WMI namespace

message_log_id in other namespaces

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

propertyClassOrigin
message_log_idhadr_db_manager_backup_info_msghadr_db_manager_backup_info_msg
message_log_idhadr_db_manager_backup_sync_msghadr_db_manager_backup_sync_msg
message_log_idhadr_db_manager_establish_db_msghadr_db_manager_establish_db_msg
message_log_idhadr_db_manager_filemetadata_requesthadr_db_manager_filemetadata_request
message_log_idhadr_db_manager_lsn_sync_msghadr_db_manager_lsn_sync_msg
message_log_idhadr_db_manager_page_requesthadr_db_manager_page_request
message_log_idhadr_db_manager_status_changehadr_db_manager_status_change
message_log_idhadr_dump_log_blockhadr_dump_log_block
message_log_idhadr_dump_log_progresshadr_dump_log_progress
message_log_idhadr_dump_primary_progresshadr_dump_primary_progress
message_log_idhadr_dump_sync_primary_progresshadr_dump_sync_primary_progress
message_log_idhadr_dump_vlf_headerhadr_dump_vlf_header
message_log_idhadr_transport_dump_config_messagehadr_transport_dump_config_message
message_log_idhadr_transport_dump_messagehadr_transport_dump_message

Code samples for message_log_id property

Get instance of WMI class using GetObject, message_log_id property of hadr_transport_dump_message

Short VBS code - get a single specified instance of hadr_transport_dump_message 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_transport_dump_message.PropertyName=""SomeText""")
Wscript.Echo wmiObject.message_log_id 'or other property name, see properties
See more VBS samples of hadr_transport_dump_message class

WMI query - sample windows WQL with C#, message_log_id property of hadr_transport_dump_message

Get a specified instance of hadr_transport_dump_message 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_transport_dump_message 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("message_log_id : {0}", m["message_log_id"]);
  
}

WMI query - sample windows WQL with VB.Net, message_log_id property of hadr_transport_dump_message

Get a specified instance of hadr_transport_dump_message 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_transport_dump_message 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("message_log_id : {0}", mObject("message_log_id"))
Next
comments powered by Disqus
WUtils.com