<xml></xml>

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

Berkeley DB .NET API Documentation
LogConfig..::.FileMode Property
LogConfig Class See Also Send Feedback

The absolute file mode for created log files.

Namespace: BerkeleyDB
Assembly: libdb_dotnet50 (in libdb_dotnet50.dll) Version: 5.0.21.0

# Syntax

C#

    public int FileMode { get; set; }

Visual Basic (Declaration)

    Public Property FileMode As Integer

Visual C++

    public:
    property int FileMode {
    	int get ();
    	void set (int value);
    }

# Remarks

This method is only useful for the rare Berkeley DB application that does not control its umask value.

Normally, if Berkeley DB applications set their umask appropriately, all processes in the application suite will have read permission on the log files created by any process in the application suite. However, if the Berkeley DB application is a library, a process using the library might set its umask to a value preventing other processes in the application suite from reading the log files it creates. In this rare case, the DB_ENV->set_lg_filemode() method can be used to set the mode of created log files to an absolute value.

# See Also

LogConfig Class
BerkeleyDB Namespace