SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the file/folder's attributes.
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); |
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.
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