Adds a file to the Recent Documents menu using the Shell.

Namespace: System.Extensions.IO
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
public static void AddToRecentDocuments(
	this FileInfo fileInfo
)
Visual Basic
<ExtensionAttribute> 
Public Shared Sub AddToRecentDocuments ( 
	fileInfo As FileInfo
)
Visual C++
public:
[ExtensionAttribute]
static void AddToRecentDocuments(
	FileInfo^ fileInfo
)
F#
static member AddToRecentDocuments : 
        fileInfo : FileInfo -> unit 

Parameters

fileInfo
Type: System.IO..::..FileInfo
The FileInfo object that represents the file to be added to the menu.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FileInfo. 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).

See Also