Set the attribute read only of a file

Namespace: LLCryptoLib.Utils
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public bool SetReadOnly(
	string fullName,
	bool readOnly
)
Visual Basic
Public Function SetReadOnly ( _
	fullName As String, _
	readOnly As Boolean _
) As Boolean
Visual C++
public:
bool SetReadOnly(
	String^ fullName, 
	bool readOnly
)

Parameters

fullName
Type: System..::..String
Full path of file
readOnly
Type: System..::..Boolean
If true, the file will be set readonly. Else will be set writable

Return Value

True, if the attribute was set

Remarks

In case this method return false, check ErrorMessage

See Also