Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Connects to WMI on the local machine and gets the WMI instances from a class.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static InventoryInstance[] WmiClassToInventoryInstances(
string scope,
string wmiClass
)
public:
static array<InventoryInstance^>^ WmiClassToInventoryInstances(
String^ scope,
String^ wmiClass
)
Public Shared Function WmiClassToInventoryInstances (
scope As String,
wmiClass As String
) As InventoryInstance()
Parameters
scope
Type: System.StringThe namespace to connect to. This value is required.
wmiClass
Type: System.StringThe WMI class. This value is required.
Return Value
Type: Microsoft.ConfigurationManagement.Messaging.Messages.InventoryInstance[]
See Also
WmiClassToInventoryInstances Overload
WmiClassToInventoryReportInstance Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top