Horje
check file lock c# Code Example
check file lock c#
public bool IsFileLocked(string filePath)
{
    try
    {
        using (File.Open(filePath, FileMode.Open)){}
    }
    catch (IOException e)
    {
        var errorCode = Marshal.GetHRForException(e) & ((1 << 16) - 1);
        return errorCode == 32 || errorCode == 33;
    }
    return false;
}




Csharp

Related
Metadata publishing for this service is currently disabled Code Example Metadata publishing for this service is currently disabled Code Example
wpf toolbar disable overflow Code Example wpf toolbar disable overflow Code Example
c# set cursor pos Code Example c# set cursor pos Code Example
mvc string format Code Example mvc string format Code Example
how to filter a datatable in c# Code Example how to filter a datatable in c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8