Click or drag to resize

OnDemandLocalFileSystem.HandleSharingViolation Method

Handles a possible sharing violation error in a specific way.

Namespace:  callback.ShellBoost.Core.Synchronization
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
protected virtual int HandleSharingViolation(
	int hr,
	string text,
	string filePath,
	bool throwOnError = true
)

Parameters

hr
Type: System.Int32
The error code (HRESULT). If 0, the method just returns 0.
text
Type: System.String
The text to add to the exception that will possibly be throw.
filePath
Type: System.String
The absolute file path of the file that caused the sharing violation error.
throwOnError (Optional)
Type: System.Boolean
true to throw error; otherwise false.

Return Value

Type: Int32
0 if operation was successful; otherwise an error code.
Exceptions
ExceptionCondition
ArgumentNullException text or filePath is null.
See Also