Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectoryFolder.Type Property

Returns the file/folder's type if available.

Syntax

Get

VB.NETFolderType = object.Type As SftDirectoryFolderTypeConstants
VBFolderType = object.Type As SftDirectoryFolderTypeConstants
C#.NETSftDirectoryFolderTypeConstants FolderType = object.Type;
VC++enum SftDirectoryFolderTypeConstants FolderType = object->Type;
enum SftDirectoryFolderTypeConstants FolderType = object->GetType();
CHRESULT object->get_Type(enum SftDirectoryFolderTypeConstants* FolderType);

object

A SftDirectoryFolder object.

FolderType

Returns the file/folder's type if available.

FolderTypeValueDescription
typeSftDirectory_Unsupported0Unsupported Environment
typeSftDirectory_Root_RegItem1Desktop item
typeSftDirectory_Fs_File2File
typeSftDirectory_Fs_Directory3Folder
typeSftDirectory_Fs_Other4Unidentified item
typeSftDirectory_Computer_Drive3553.5 Floppy
typeSftDirectory_Computer_Drive52565.25 Floppy
typeSftDirectory_Computer_Removable7Removable Drive
typeSftDirectory_Computer_Fixed8Fixed Drive
typeSftDirectory_Computer_NetDrive9Mapped to Network Share
typeSftDirectory_Computer_CDROM10CD/DVD
typeSftDirectory_Computer_RamDisk11RAM Drive
typeSftDirectory_Computer_Other12Unidentified Drive
typeSftDirectory_Net_Domain13Network Domain
typeSftDirectory_Net_Server14Network Server
typeSftDirectory_Net_Share15Network Share
typeSftDirectory_Net_RestOfNet16Rffu
typeSftDirectory_Net_Other17Unidentified Network Resource
typeSftDirectory_Computer_Imaging18Rffu (XP and up)
typeSftDirectory_Computer_Audio19Rffu (XP and up)
typeSftDirectory_Computer_SharedDocs20Shared Documents Folder (XP and up)
typeSftDirectory_Mobile_Device21Mobile Device (Vista and up)

Comments

The Type property returns the file/folder's type if available.

This information is retrieved from the Windows Shell or Shell extensions in the form of a SHDESCRIPTIONID structure, which contains the file/folder type. For more information about file/folder types and the SHDESCRIPTIONID structure, please see the Windows documentation.

This property is undefined on Windows versions prior to Windows ME.

To retrieve the file/folder type as it is displayed to the user use GetText(contentsSftDirectoryType).

See Also SftDirectoryFolder Object | Object Hierarchy


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