LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

OpenFile Method (ILeadStream)






The relative or absolute path for the file that this ILeadStream object will be associated with.
A constant that determines how to open or create the file.
A constant that determines how the file can be accessed by this ILeadStream object.
A constant that determines how the file will be shared by processes.
Creates, opens or reopens the specified file. .NET support WinRT support
Syntax
'Declaration
 
Function OpenFile( _
   ByVal fileName As String, _
   ByVal mode As LeadStreamMode, _
   ByVal access As LeadStreamAccess, _
   ByVal share As LeadStreamShare _
) As Boolean
'Usage
 
Dim instance As ILeadStream
Dim fileName As String
Dim mode As LeadStreamMode
Dim access As LeadStreamAccess
Dim share As LeadStreamShare
Dim value As Boolean
 
value = instance.OpenFile(fileName, mode, access, share)
function Leadtools.ILeadStream.OpenFile( 
   fileName ,
   mode ,
   access ,
   share 
)

Parameters

fileName
The relative or absolute path for the file that this ILeadStream object will be associated with.
mode
A constant that determines how to open or create the file.
access
A constant that determines how the file can be accessed by this ILeadStream object.
share
A constant that determines how the file will be shared by processes.

Return Value

true if the file is opened; false, otherwise
Remarks
Use the ILeadStream interface to perform read and write operations.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ILeadStream Interface
ILeadStream Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.