Click or drag to resize

ShellUtilitiesGetBindOptions Method (IBindCtx, BIND_OPTS2, Boolean)

Returns the current binding options stored in a bind context.

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

Parameters

bindContext
Type: System.Runtime.InteropServices.ComTypesIBindCtx
The bind context.
options
Type: ShellBoost.Core.WindowsShellBIND_OPTS2
The structure receive the binding options.
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