Click or drag to resize

ShellUtilitiesAddToBindCtx Method

Adds a name-value pair to an IBindCtx's property bag.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static int AddToBindCtx(
	this IBindCtx bindContext,
	string name,
	Object value,
	bool throwOnError = true
)

Parameters

bindContext
Type: System.Runtime.InteropServices.ComTypesIBindCtx
The bind context.
name
Type: SystemString
The name.
value
Type: SystemObject
The value.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of Windows Shell errors.

Return Value

Type: Int32
An error code or 0.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IBindCtx. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullException bindContext is null or name is null.
See Also