UtilWMIGetAllValuesInWMIClassNameAsString Method
Returns a String representation of all the property and values in the specified WIM class name.
Namespace: DevCase.Core.Diagnostics.WMIAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string GetAllValuesInWMIClassNameAsString(
string classname,
bool includeReferenceProperties,
bool includeNulValues
)
Public Shared Function GetAllValuesInWMIClassNameAsString (
classname As String,
includeReferenceProperties As Boolean,
includeNulValues As Boolean
) As String
Dim classname As String
Dim includeReferenceProperties As Boolean
Dim includeNulValues As Boolean
Dim returnValue As String
returnValue = UtilWMI.GetAllValuesInWMIClassNameAsString(classname,
includeReferenceProperties, includeNulValues)
public:
static String^ GetAllValuesInWMIClassNameAsString(
String^ classname,
bool includeReferenceProperties,
bool includeNulValues
)
static member GetAllValuesInWMIClassNameAsString :
classname : string *
includeReferenceProperties : bool *
includeNulValues : bool -> string
No code example is currently available or this language may not be supported.
- classname String
-
The WMI class name where to fetch its properties.
- includeReferenceProperties Boolean
- to include reference properties.
- includeNulValues Boolean
- to include values that are nul.
String
The resulting
String representation of all the property and values in the specified WIM class name.
This is a code example.
No code example is currently available or this language may not be supported.
Dim classNames As String() = {
"Win32_BaseBoard",
"Win32_BIOS",
"Win32_BootConfiguration",
"Win32_ComputerSystem",
"Win32_ComputerSystemProcessor",
"Win32_ComputerSystemProduct",
"Win32_DiskDrive",
"Win32_DiskPartition",
"Win32_MotherboardDevice",
"Win32_OperatingSystem",
"Win32_PhysicalMedia",
"Win32_PhysicalMemory",
"Win32_Processor",
"Win32_Registry",
"Win32_SystemOperatingSystem"
}
For Each className As String In classNames
Dim wmiInfoString As String = GetAllValuesInWMIClassNameAsString(className, includeReferenceProperties:=True, includeNulValues:=True)
Console.WriteLine(wmiInfoString)
Console.WriteLine()
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.