OnDemandLocalFileSystemHandleSharingViolation Method |
Handles a possible sharing violation error in a specific way.
Namespace:
ShellBoost.Core.Synchronization
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax protected virtual int HandleSharingViolation(
int hr,
string text,
string filePath,
bool throwOnError = true
)
Parameters
- hr
- Type: SystemInt32
The error code (HRESULT). If 0, the method just returns 0. - text
- Type: SystemString
The text to add to the exception that will possibly be throw. - filePath
- Type: SystemString
The absolute file path of the file that caused the sharing violation error. - throwOnError (Optional)
- Type: SystemBoolean
true to throw error; otherwise false.
Return Value
Type:
Int32
0 if operation was successful; otherwise an error code.
Exceptions See Also