|
|
|
SftDirectoryFolder.Name Property |
Defines the file/folder's name (including extension, if any).
Syntax
VB.NET |
String = object.Name As String |
||
VB |
String = object.Name As String |
||
C#.NET |
string String = object.Name; |
||
VC++ |
_bstr_t String = object->Name;
|
||
C |
HRESULT object->get_Name(BSTR* String); |
||
Delphi |
String := object.Name : WideString; |
||
VB.NET |
object.Name = String As String |
||
VB |
object.Name = String As String |
||
C#.NET |
string object.Name = String; |
||
VC++ |
_bstr_t object->Name = String;
|
||
C |
HRESULT object->put_Name(BSTR String); |
||
Delphi |
object.Name := String : WideString; |
object
A SftDirectoryFolder object.
String
Defines the file/folder's name.
Comments
The Name property defines the file/folder's name (including extension, if any).
When setting the Name property, the file/folder is renamed. Only a relative folder name can be used (not an absolute path name).
The FileName and FileExt properties can be use to retrieve just the file name or extension.
To retrieve the file/folder name as it is displayed to the user, also use GetText(contentsSftDirectoryName).
The file/folder's full path can be retrieved using the Path property.