OpenNETCF Smart Device Framework 2.3
Sets the specified FileAttributes of the file on the specified path.

Namespace:  OpenNETCF.IO
Assembly:  OpenNETCF (in OpenNETCF.dll) Version: 2.3.0.0

Syntax

C#
public static void SetAttributes(
	string path,
	FileAttributes fileAttributes
)
Visual Basic (Declaration)
Public Shared Sub SetAttributes ( _
	path As String, _
	fileAttributes As FileAttributes _
)
Visual Basic (Usage)
Dim path As String
Dim fileAttributes As FileAttributes

FileHelper.SetAttributes(path, fileAttributes)
Visual C++
public:
static void SetAttributes(
	String^ path, 
	FileAttributes fileAttributes
)
J#
public static void SetAttributes(
	String path,
	FileAttributes fileAttributes
)
JScript
public static function SetAttributes(
	path : String, 
	fileAttributes : FileAttributes
)
JavaScript
OpenNETCF.IO.FileHelper.SetAttributes = function(path, fileAttributes);

Parameters

path
Type: System..::.String
The path to the file.
fileAttributes
Type: System.IO..::.FileAttributes
The desired FileAttributes, such as Hidden, ReadOnly, Normal, and Archive.

See Also