Click or drag to resize

ExtensionGetAllFilesAsync Method

Returns an array of PDM files. If canceled, method returns found files.

Namespace:  CADSharpTools.PDM
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public static Task<MethodReturn<IEdmFile5[]>> GetAllFilesAsync(
	this IEdmFolder5 folder,
	bool includeSubFolders,
	CancellationToken cancellationToken
)

Parameters

folder
Type: IEdmFolder5
Folder object.
includeSubFolders
Type: SystemBoolean
True to include sub-folders, false for top level only.
cancellationToken
Type: System.ThreadingCancellationToken
CancellationToken object.

Return Value

Type: TaskMethodReturnIEdmFile5
MedthodReturn of IEdmFile5[]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmFolder5. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This method supports cancellation. Use this method for directory that contain a large number of files.
See Also