Click or drag to resize

ShellUtilitiesGetViewStatePropertyBagValue Method (IntPtr, String, String, SHGVSPB)

Retrieves a property bag in which the view state information for a folder can be stored and subsequently retrieved and get a value by its name from it. The user's settings are kept for the next time the user visits the folder.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Object GetViewStatePropertyBagValue(
	IntPtr pidl,
	string bagName,
	string valueName,
	SHGVSPB flags = SHGVSPB.SHGVSPB_NONE
)

Parameters

pidl
Type: SystemIntPtr
A PIDL of the folder for which you are requesting properties. This parameter must be Zero if the SHGVSPB_ALLFOLDERS flag is passed.
bagName
Type: SystemString
The name of the requested property bag.
valueName
Type: SystemString
The name of the value to get.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellSHGVSPB
Options that specify how the bag must be retrieved.

Return Value

Type: Object
The object value or null.
Exceptions
ExceptionCondition
ArgumentNullException name is null or valueName is null.
See Also