[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.TotalCommanderTAssembly: 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.
| Do not thow any other exceptions. Such exception will be passed to Total Commander which cannot handle it. |
Exceptions
| Exception | Condition |
|---|---|
| System..::..UnauthorizedAccessException | The user does not have required access |
| System.Security..::..SecurityException | Security error detected |
| System.IO..::..IOException | An IO error occured |
| System..::..NotSupportedException | The actual implementation is marked with MethodNotSupportedAttribute which means that the plugin doesnot support operation provided by the method. |