Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FileAppender.LockingModelBase.CreateStream�Method�

Helper method that creates a FileStream under CurrentAppender's SecurityContext.

[Visual�Basic]
Protected�Function�CreateStream( _
���ByVal filename�As�String,�_
���ByVal append�As�Boolean,�_
���ByVal fileShare�As�FileShare�_
)�As�Stream
[C#]
protected�Stream�CreateStream(
���stringfilename,
���boolappend,
���FileSharefileShare
);

Parameters

filename
append
fileShare

Return Value

Remarks

Typically called during OpenFile or AcquireLock.

If the directory portion of the filename does not exist, it is created via Directory.CreateDirecctory.

See Also

FileAppender.LockingModelBase Class | log4net.Appender Namespace