[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates InventoryInstanceGeneric generated based on incoming parameters

Namespace:  Microsoft.ConfigurationManagement.Messaging.Messages
Assembly:  Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
static 

InventoryInstanceGeneric 
WmiClassToInventoryInstanceGeneric(
	
string 
wmiClassName,
	
string 
wmiNamespace,
	
string[] 
propertyNames,
	
string[] 
propertyValues
)
Public 
Shared 
Function 
WmiClassToInventoryInstanceGeneric
( _
	
wmiClassName 
As 
String, _
	
wmiNamespace 
As 
String, _
	
propertyNames 
As 
String(), _
	
propertyValues 
As 
String() _
) 
As 

InventoryInstanceGeneric
public:
static 

InventoryInstanceGeneric^ 
WmiClassToInventoryInstanceGeneric(
	
String^ 
wmiClassName, 
	
String^ 
wmiNamespace, 
	
array<
String^>^ 
propertyNames, 
	
array<
String^>^ 
propertyValues
)

Parameters

wmiClassName
String
Name of the WMI class
wmiNamespace
String
Name of the WMI name space
propertyNames
array< String > [] () [] []
String Array to hold property names (note - must be same length as values array, and vice-versa)
propertyValues
array< String > [] () [] []
String Array to hold the matching property values

See Also