ConfigMgrSoftwareInventoryMessage.AddDirectoryFilesToInventory Method (String, String, Boolean, Boolean)
Adds all the files in a directory to a software inventory.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public void AddDirectoryFilesToInventory(
string directoryPath,
string searchPattern,
bool searchRecursively,
bool ignoreHandledExceptions
)
public:
void AddDirectoryFilesToInventory(
String^ directoryPath,
String^ searchPattern,
bool searchRecursively,
bool ignoreHandledExceptions
)
Public Sub AddDirectoryFilesToInventory (
directoryPath As String,
searchPattern As String,
searchRecursively As Boolean,
ignoreHandledExceptions As Boolean
)
Parameters
directoryPath
Type: System.StringDirectory path to search.
searchPattern
Type: System.StringPattern to search, for example *.exe.
searchRecursively
Type: System.BooleanIf true, the search is recursive.
ignoreHandledExceptions
Type: System.BooleanIf true, handleable exceptions are ignored.
See Also
AddDirectoryFilesToInventory Overload
ConfigMgrSoftwareInventoryMessage Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top