Partager via


ConfigMgrSoftwareInventoryMessage.AddDirectoryFilesToInventory Method (String, String, Boolean)

 

Adds all the files in a directory to a software inventory. Ignores handled security exceptions.

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

Syntax

public void AddDirectoryFilesToInventory(
    string directoryPath,
    string searchPattern,
    bool searchRecursively
)
public:
void AddDirectoryFilesToInventory(
    String^ directoryPath,
    String^ searchPattern,
    bool searchRecursively
)
Public Sub AddDirectoryFilesToInventory (
    directoryPath As String,
    searchPattern As String,
    searchRecursively As Boolean
)

Parameters

  • searchPattern
    Type: System.String

    Pattern to search, for example *.exe.

  • searchRecursively
    Type: System.Boolean

    If true, the search is recursive.

See Also

AddDirectoryFilesToInventory Overload
ConfigMgrSoftwareInventoryMessage Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace

Return to top