Click or drag to resize

ShellUtilitiesCreateBindCtx Method (String, NullableSTGM, NullableInt64, NullableFileAttributes, NullableDateTime, NullableDateTime, NullableDateTime, Boolean)

Returns an implementation of IBindCtx (a bind context object) that doesn't need a an existing Shell Item for binding operations. Pass STGM_CREATE for mode parameter to create an item that doesn't necessarily exist.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static IBindCtx CreateBindCtx(
	string name,
	STGM? mode = null,
	long? length = null,
	FileAttributes? attributes = null,
	DateTime? lastWriteTime = null,
	DateTime? creationTime = null,
	DateTime? lastAccessTime = null,
	bool throwOnError = true
)

Parameters

name
Type: SystemString
The name.
mode (Optional)
Type: SystemNullableSTGM
The file access mode.
length (Optional)
Type: SystemNullableInt64
The item length.
attributes (Optional)
Type: SystemNullableFileAttributes
The file attributes.
lastWriteTime (Optional)
Type: SystemNullableDateTime
The last write time.
creationTime (Optional)
Type: SystemNullableDateTime
The creation time.
lastAccessTime (Optional)
Type: SystemNullableDateTime
The last access time.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: IBindCtx
An instance of IBindCtx or null if an error occurred.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null.
See Also