Partager via


WmiClassToInventoryReportInstance.WmiClassToInventoryInstanceGeneric Method (String, String, String[], String[])

 

Creates an InventoryInstanceGeneric instance generated based on the incoming parameters.

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

Syntax

public static InventoryInstanceGeneric WmiClassToInventoryInstanceGeneric(
    string wmiClassName,
    string wmiNamespace,
    string[] propertyNames,
    string[] propertyValues
)
public:
static InventoryInstanceGeneric^ WmiClassToInventoryInstanceGeneric(
    String^ wmiClassName,
    String^ wmiNamespace,
    array<String^>^ propertyNames,
    array<String^>^ propertyValues
)
Public Shared Function WmiClassToInventoryInstanceGeneric (
    wmiClassName As String,
    wmiNamespace As String,
    propertyNames As String(),
    propertyValues As String()
) As InventoryInstanceGeneric

Parameters

  • propertyNames
    Type: System.String[]

    String array to hold property names. Note: This must be the same length as the values array.

  • propertyValues
    Type: System.String[]

    String array to hold the matching property values. Note: This must be the same length as the names array.

Return Value

Type: Microsoft.ConfigurationManagement.Messaging.Messages.InventoryInstanceGeneric

See Also

WmiClassToInventoryInstanceGeneric Overload
WmiClassToInventoryReportInstance Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace

Return to top