Click or drag to resize

FileSystemEntryRunByIdT Method (String, Guid, FuncIntPtr, T, FileAccess, FileShare, Boolean)

Runs a function on an entry handle opened using its 128-bit identifier.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static T RunById<T>(
	string volumeGuid,
	Guid id,
	Func<IntPtr, T> func,
	FileAccess access = FileAccess.Read,
	FileShare share = FileShare.ReadWrite|FileShare.Delete,
	bool throwOnError = true
)

Parameters

volumeGuid
Type: SystemString
The volume Guid.
id
Type: SystemGuid
The entry identifier.
func
Type: SystemFuncIntPtr, T
The action to run.
access (Optional)
Type: System.IOFileAccess
A constant that determines how the entry can be accessed.
share (Optional)
Type: System.IOFileShare
A constant that determines how the entry will be shared by processes.
throwOnError (Optional)
Type: SystemBoolean
true to throw errors; otherwise false.

Type Parameters

T
The return value type.

Return Value

Type: T
The result of the called function, or the default value.
See Also