public static enum ShlObj.KNOWN_FOLDER_FLAG extends Enum<ShlObj.KNOWN_FOLDER_FLAG>
Enum Constant and Description |
---|
ALIAS_ONLY
Introduced in Windows 7.
|
CREATE
Forces the creation of the specified folder if that folder does not already exist.
|
DEFAULT_PATH
Gets the default path for a known folder.
|
DONT_UNEXPAND
Stores the full path in the registry without using environment strings.
|
DONT_VERIFY
Do not verify the folder's existence before attempting to retrieve the path or IDList.
|
INIT
Initializes the folder using its Desktop.ini settings.
|
NO_ALIAS
Gets the true system path for the folder, free of any aliased placeholders such as %USERPROFILE%, returned by
SHGetKnownFolderIDList and IKnownFolder::GetIDList.
|
NO_APPCONTAINER_REDIRECTION
Introduced in Windows 7: When running inside an app container, or when providing an app container token, this
flag prevents redirection to app container folders.
|
NONE
None
|
NOT_PARENT_RELATIVE
Gets the folder's default path independent of the current location of its parent.
|
SIMPLE_IDLIST
Build a simple IDList (PIDL) This value can be used when you want to retrieve the file system path but do not
specify this value if you are retrieving the localized display name of the folder because it might not
resolve correctly.
|
Modifier and Type | Method and Description |
---|---|
int |
getFlag() |
static ShlObj.KNOWN_FOLDER_FLAG |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShlObj.KNOWN_FOLDER_FLAG[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShlObj.KNOWN_FOLDER_FLAG NONE
public static final ShlObj.KNOWN_FOLDER_FLAG SIMPLE_IDLIST
public static final ShlObj.KNOWN_FOLDER_FLAG NOT_PARENT_RELATIVE
public static final ShlObj.KNOWN_FOLDER_FLAG DEFAULT_PATH
public static final ShlObj.KNOWN_FOLDER_FLAG INIT
public static final ShlObj.KNOWN_FOLDER_FLAG NO_ALIAS
public static final ShlObj.KNOWN_FOLDER_FLAG DONT_UNEXPAND
public static final ShlObj.KNOWN_FOLDER_FLAG DONT_VERIFY
public static final ShlObj.KNOWN_FOLDER_FLAG CREATE
public static final ShlObj.KNOWN_FOLDER_FLAG NO_APPCONTAINER_REDIRECTION
public static final ShlObj.KNOWN_FOLDER_FLAG ALIAS_ONLY
public static ShlObj.KNOWN_FOLDER_FLAG[] values()
for (ShlObj.KNOWN_FOLDER_FLAG c : ShlObj.KNOWN_FOLDER_FLAG.values()) System.out.println(c);
public static ShlObj.KNOWN_FOLDER_FLAG valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getFlag()