Creates a read only file stream.
Namespace: VcClient.TestAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
C# |
---|
public ReadOnlyStream(
string fileName,
long offset,
long length
) |
Visual Basic |
---|
Public Sub New ( _
fileName As String, _
offset As Long, _
length As Long _
) |
Visual C++ |
---|
public:
ReadOnlyStream(
String^ fileName,
long long offset,
long long length
) |
Parameters
- fileName
- Type: String
File to open.
- offset
- Type: Int64
Offset from the begining of file.
- length
- Type: Int64
Length of file to operate with.
Exceptions
Exception | Condition |
---|
ArgumentException | offset is before beginning or beyond
end of file or length is greater the length of file. |
IOException | In a case of IO error. |
See Also