ConfigMgrFileCollectionMessage.AddDirectoryFilesToCollection Method (String, String, Boolean, Boolean)
Adds files to the collection.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public void AddDirectoryFilesToCollection(
string path,
string searchPattern,
bool recursive,
bool ignoreHandledExceptions
)
public:
void AddDirectoryFilesToCollection(
String^ path,
String^ searchPattern,
bool recursive,
bool ignoreHandledExceptions
)
Public Sub AddDirectoryFilesToCollection (
path As String,
searchPattern As String,
recursive As Boolean,
ignoreHandledExceptions As Boolean
)
Parameters
path
Type: System.StringThe path to the files.
searchPattern
Type: System.StringThe search pattern.
recursive
Type: System.BooleanTrue if recursive.
ignoreHandledExceptions
Type: System.BooleanIf true, handled exceptions are ignored.
See Also
AddDirectoryFilesToCollection Overload
ConfigMgrFileCollectionMessage Class
Microsoft.ConfigurationManagement.Messaging.Messages Namespace
Return to top