SftDirectory 2.5

SftDirectoryFolder.Name Property

Softel vdm, Inc.

Defines the file/folder's name (including extension, if any).

Syntax       

Get

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;
_bstr_t String = object->GetName();

C

HRESULT object->get_Name(BSTR* String);

Delphi

String := object.Name   : WideString;

Put

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;
void object->PutName(_bstr_t 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.


Feedback / comments / error reports for this topic
© 2003, 2008 - Softel vdm, Inc. - www.softelvdm.com