←Select platform

LeadFileStream Constructor(string,FileMode,FileAccess,FileShare)

Summary

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

Syntax
C#
Python
public LeadFileStream( 
   string fileName, 
   FileMode mode, 
   FileAccess access, 
   FileShare share 
) 
__init__(self, fileName, mode, access, share) # Overloaded constructor  

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 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.