←Select platform

LeadFileStream Constructor(string,FileMode,FileAccess,FileShare)

Summary

Initializes a new instance of this class with the specified parameters.

Syntax
C#
VB
public LeadFileStream( 
   string fileName, 
   FileMode mode, 
   FileAccess access, 
   FileShare share 
) 
Public Sub New(ByVal fileName As String, ByVal mode As FileMode, ByVal access As FileAccess, ByVal share As FileShare) 
 MyBase.New 

Parameters

fileName

Path to the file name to use with this stream.

mode

Mode to use when opening or creating the file.

access

Access rights to use when opening or creating the file.

share

Share modes to use when opening or creating the file.

Remarks

The LeadStream.Factory.OpenFile and LeadStream.Factory.CreateFile can be used to quickly create LeadFileStream instances from a file on disk.

Refer to RasterCodecs Async Operations for more information and examples.

Requirements

For .NET Framework: A reference to the Leadtools.Async.dll assembly is required to use this functionality.

For .NET Standard: This functionality is included in the Leadtools.dll assembly.

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly