[This is preliminary documentation and is subject to change.]

When overriden in derived class sets the (Windows-Style) file attributes of a file/dir. ExecuteFile(IntPtr, String%, String) is called for Unix-style attributes.

Namespace: Tools.TotalCommanderT
Assembly: Tools.TotalCommander (in Tools.TotalCommander.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[MethodNotSupportedAttribute]
public virtual void SetAttr(
	string RemoteName,
	StandardFileAttributes NewAttr
)
Visual Basic
<MethodNotSupportedAttribute> _
Public Overridable Sub SetAttr ( _
	RemoteName As String, _
	NewAttr As StandardFileAttributes _
)
Visual C++
[MethodNotSupportedAttribute]
public:
virtual void SetAttr(
	String^ RemoteName, 
	StandardFileAttributes NewAttr
)
F#
[<MethodNotSupportedAttribute>]
abstract SetAttr : 
        RemoteName:string * 
        NewAttr:StandardFileAttributes -> unit 
[<MethodNotSupportedAttribute>]
override SetAttr : 
        RemoteName:string * 
        NewAttr:StandardFileAttributes -> unit 
JScript
public function SetAttr(
	RemoteName : String, 
	NewAttr : StandardFileAttributes
)

Parameters

RemoteName
Type: System..::..String
Name of the file/directory whose attributes have to be set
NewAttr
Type: Tools.TotalCommanderT..::..StandardFileAttributes
New file attributes

Remarks

When most-derived method implementation is marked with MethodNotSupportedAttribute, it means that the most derived plugin implementation does not support operation provided by the method.
Note
Do not thow any other exceptions. Such exception will be passed to Total Commander which cannot handle it.

Exceptions

ExceptionCondition
System..::..UnauthorizedAccessExceptionThe user does not have required access
System.Security..::..SecurityExceptionSecurity error detected
System.IO..::..IOExceptionAn IO error occured
System..::..NotSupportedExceptionThe actual implementation is marked with MethodNotSupportedAttribute which means that the plugin doesnot support operation provided by the method.

See Also