Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectoryFolder.Attributes2 Property

Returns the file/folder's attributes.

Syntax

Get

VB.NETValue = object.Attributes2 As Integer
VBValue = object.Attributes2 As Long
C#.NETint Value = object.Attributes2;
VC++long Value = object->Attributes2;
long Value = object->GetAttributes2();
CHRESULT object->get_Attributes2(long* Value);

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:table row cellh Value cellh Value cellh Description row cell SFGAO2_FILE_ATTRIBUTE_ARCHIVE cell 1 cell Archive bit. row cell FILE_ATTRIBUTE_DIRECTORY cell 0x00000010 cell 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.

See Also SftDirectoryFolder Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.