Gemstone Common Library
Show/Hide TOC

# FilePathTryGetReadLock Method

Attempts to get read access on a file.

## Definition

Namespace: Gemstone.IO
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.177 -- Release Build+17e3a8c30c12a6a5a57ad4af156d7b83be281c33
C#
View Source Request Example

    public static bool TryGetReadLock(
    	string fileName
    )

VB
View Source Request Example

    Public Shared Function TryGetReadLock (
    	fileName As String
    ) As Boolean

C++
View Source Request Example

    public:
    static bool TryGetReadLock(
    	String^ fileName
    )

JavaScript
View Source Request Example

    Gemstone.IO.FilePath.TryGetReadLock = function(fileName);

#### Parameters

fileName String
  The file to check for read access.

#### Return Value

Boolean
True if read access is obtained; false otherwise.

## See Also

#### Reference

FilePath Class
Gemstone.IO Namespace