Click or drag to resize

ShellUtilitiesEnsureBindCtxPropertyBag Method (IBindCtx, Object, Boolean)

Ensures an IBindCtx has a property bag.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static int EnsureBindCtxPropertyBag(
	this IBindCtx bindContext,
	out Object store,
	bool throwOnError = true
)

Parameters

bindContext
Type: System.Runtime.InteropServices.ComTypesIBindCtx
The bind context.
store
Type: SystemObject
The property store or property bag instance.
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