Click or drag to resize

ShellUtilitiesEnsureBindCtxPropertyBag Method (IBindCtx, Boolean)

Ensures an IBindCtx has a property bag.

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

Parameters

bindContext
Type: System.Runtime.InteropServices.ComTypesIBindCtx
The bind context.
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
ArgumentNullExceptionbindContext is null.
See Also