|
|
|
SftDirectoryFolder.Type Property |
Returns the file/folder's type if available.
Syntax
VB.NET |
FolderType = object.Type As SftDirectoryFolderTypeConstants |
||
VB |
FolderType = object.Type As SftDirectoryFolderTypeConstants |
||
C#.NET |
SftDirectoryFolderTypeConstants FolderType = object.Type; |
||
VC++ |
enum SftDirectoryFolderTypeConstants FolderType = object->Type;
|
||
C |
HRESULT object->get_Type(enum SftDirectoryFolderTypeConstants* FolderType); |
||
Delphi |
FolderType := object.type_ : TOleEnum; |
object
A SftDirectoryFolder object.
FolderType
Returns the file/folder's type if available.
FolderType |
Value |
Description |
0 |
Unsupported Environment |
|
1 |
Desktop item |
|
2 |
File |
|
3 |
Folder |
|
4 |
Unidentified item |
|
5 |
3.5 Floppy |
|
6 |
5.25 Floppy |
|
7 |
Removable Drive |
|
8 |
Fixed Drive |
|
9 |
Mapped to Network Share |
|
10 |
CD/DVD |
|
11 |
RAM Drive |
|
12 |
Unidentified Drive |
|
13 |
Network Domain |
|
14 |
Network Server |
|
15 |
Network Share |
|
16 |
Rffu |
|
17 |
Unidentified Network Resource |
|
18 |
Rffu (XP and up) |
|
19 |
Rffu (XP and up) |
|
20 |
Shared Documents Folder (XP and up) |
|
21 |
Mobile 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).