Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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