SftDirectory 2.5

SftDirectoryFolder.Attributes2 Property

Softel vdm, Inc.

Returns the file/folder's attributes.

Syntax       

Get

VB.NET

Value = object.Attributes2  As Integer

VB

Value = object.Attributes2  As Long

C#.NET

int Value = object.Attributes2;

VC++

long Value = object->Attributes2;
long Value = object->GetAttributes2();

C

HRESULT object->get_Attributes2(long* Value);

Delphi

Value := object.Attributes2   : Integer;

object

A SftDirectoryFolder object.

Value

Returns the folder's attributes.  These are obtained using the Windows Shell IShellFolder interface, GetAttributesOf function.  Details about this function can be found in the Windows documentation.  The following values are currently defined and can occur in any combination:

Value

Value

Description

SFGAO2_FILE_ATTRIBUTE_ARCHIVE

1

Archive bit.

FILE_ATTRIBUTE_DIRECTORY 

0x00000010

Directory.

Note: The symbolic names (such as SFGAO2_FILE_ATTRIBUTE_ARCHIVE) are not predefined and have to be defined explicitly by the application or the actual value must be used.

Comments

The Attributes2 property returns the file/folder's attributes.

The Attributes property returns additional folder attributes.

The IsFile, IsFolder and IsLink properties can be used to determine a file/folder's basic type. For additional information about the file/folder, the Attributes and Attributes2 properties can be used.


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