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
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.
See Also
AddDirectoryFilesToInventory Overload
ConfigMgrSoftwareInventoryMessage Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top