.NET Based OPC UA Client/Server SDK
3.0.5.474
|
Used to access a File object on an OPC UA Server. More...
Inherits Stream.
Public Member Functions | |
FileObjectStream (FileModel model) | |
Initializes a new instance of the FileObjectStream class. More... | |
FileObjectStream (ApplicationInstanceBase application, string endpointUrl, NodeId fileId) | |
Initializes a new instance of the FileObjectStream class. More... | |
FileObjectStream (ApplicationInstanceBase application, string endpointUrl, NodeId fileId, FileAccessModes accessMode) | |
Initializes a new instance of the FileObjectStream class. More... | |
FileObjectStream (Session session, NodeId fileId) | |
Initializes a new instance of the FileObjectStream class. More... | |
FileObjectStream (Session session, NodeId fileId, FileAccessModes accessMode) | |
Initializes a new instance of the FileObjectStream class. More... | |
override int | Read (byte[] buffer, int offset, int count) |
When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. More... | |
override IAsyncResult | BeginRead (byte[] buffer, int offset, int count, AsyncCallback callback, object state) |
Begins an asynchronous read operation. (Consider using M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.) More... | |
override int | EndRead (IAsyncResult asyncResult) |
Waits for the pending asynchronous read to complete. (Consider using M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.) More... | |
override void | Write (byte[] buffer, int offset, int count) |
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. More... | |
override IAsyncResult | BeginWrite (byte[] buffer, int offset, int count, AsyncCallback callback, object state) |
Begins an asynchronous write operation. (Consider using M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.) More... | |
override void | EndWrite (IAsyncResult asyncResult) |
Ends an asynchronous write operation. (Consider using M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.) More... | |
override void | Close () |
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed. More... | |
override void | Flush () |
When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. More... | |
override long | Seek (long offset, SeekOrigin origin) |
When overridden in a derived class, sets the position within the current stream. More... | |
override void | SetLength (long value) |
When overridden in a derived class, sets the length of the current stream. More... | |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources. More... | |
Properties | |
override bool | CanRead [get] |
When overridden in a derived class, gets a value indicating whether the current stream supports reading. More... | |
override bool | CanSeek [get] |
When overridden in a derived class, gets a value indicating whether the current stream supports seeking. More... | |
override bool | CanTimeout [get] |
Gets a value that determines whether the current stream can time out. More... | |
override bool | CanWrite [get] |
When overridden in a derived class, gets a value indicating whether the current stream supports writing. More... | |
override long | Length [get] |
When overridden in a derived class, gets the length in bytes of the stream. More... | |
override long | Position [get, set] |
When overridden in a derived class, gets or sets the position within the current stream. More... | |
override int | ReadTimeout [get, set] |
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. More... | |
override int | WriteTimeout [get, set] |
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. More... | |
Used to access a File object on an OPC UA Server.
|
inline |
Initializes a new instance of the FileObjectStream class.
model | The model to use when accessing the server. |
System.ArgumentNullException | model |
|
inline |
Initializes a new instance of the FileObjectStream class.
application | The application. |
endpointUrl | The URL for the server to use. |
fileId | The file object node identifier. |
System.ArgumentNullException | application |
|
inline |
Initializes a new instance of the FileObjectStream class.
application | The application. |
endpointUrl | The URL for the server to use. |
fileId | The file object node identifier. |
accessMode | The access mode to use when opening the file. |
System.ArgumentNullException | application |
|
inline |
Initializes a new instance of the FileObjectStream class.
session | The session. |
fileId | The file object node identifier. |
System.ArgumentNullException | session |
|
inline |
Initializes a new instance of the FileObjectStream class.
session | The session. |
fileId | The file object node identifier. |
accessMode | The access mode to use when opening the file. |
System.ArgumentNullException | session |
|
inline |
Begins an asynchronous read operation. (Consider using M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.)
buffer | The buffer to read the data into. |
offset | The byte offset in buffer at which to begin writing data read from the stream. |
count | The maximum number of bytes to read. |
callback | An optional asynchronous callback, to be called when the read is complete. |
state | A user-provided object that distinguishes this particular asynchronous read request from other requests. |
System.ArgumentNullException | buffer |
System.ArgumentOutOfRangeException | offset or count |
|
inline |
Begins an asynchronous write operation. (Consider using M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.)
buffer | The buffer to write data from. |
offset | The byte offset in buffer from which to begin writing. |
count | The maximum number of bytes to write. |
callback | An optional asynchronous callback, to be called when the write is complete. |
state | A user-provided object that distinguishes this particular asynchronous write request from other requests. |
System.ArgumentNullException | buffer |
System.ArgumentOutOfRangeException | offset or count |
|
inline |
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed.
System.ObjectDisposedException | FileObjectStream |
|
inlineprotected |
Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.
disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
|
inline |
Waits for the pending asynchronous read to complete. (Consider using M:System.IO.Stream.ReadAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.)
asyncResult | The reference to the pending asynchronous request to finish. |
System.ArgumentNullException | asyncResult |
|
inline |
Ends an asynchronous write operation. (Consider using M:System.IO.Stream.WriteAsync(System.Byte[],System.Int32,System.Int32) instead; see the Remarks section.)
asyncResult | A reference to the outstanding asynchronous I/O request. |
System.ArgumentNullException | asyncResult |
|
inline |
When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device.
System.ObjectDisposedException | FileObjectStream |
|
inline |
When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
buffer | An array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. |
offset | The zero-based byte offset in buffer at which to begin storing the data read from the current stream. |
count | The maximum number of bytes to be read from the current stream. |
|
inline |
When overridden in a derived class, sets the position within the current stream.
offset | A byte offset relative to the origin parameter. |
origin | A value of type T:System.IO.SeekOrigin indicating the reference point used to obtain the new position. |
System.ObjectDisposedException | FileObjectStream |
System.ArgumentOutOfRangeException | offset or offset |
System.ArgumentException | origin |
|
inline |
When overridden in a derived class, sets the length of the current stream.
value | The desired length of the current stream in bytes. |
System.ObjectDisposedException | FileObjectStream |
System.NotSupportedException |
|
inline |
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
buffer | An array of bytes. This method copies count bytes from buffer to the current stream. |
offset | The zero-based byte offset in buffer at which to begin copying bytes to the current stream. |
count | The number of bytes to be written to the current stream. |
|
get |
When overridden in a derived class, gets a value indicating whether the current stream supports reading.
|
get |
When overridden in a derived class, gets a value indicating whether the current stream supports seeking.
|
get |
Gets a value that determines whether the current stream can time out.
|
get |
When overridden in a derived class, gets a value indicating whether the current stream supports writing.
|
get |
When overridden in a derived class, gets the length in bytes of the stream.
|
getset |
When overridden in a derived class, gets or sets the position within the current stream.
|
getset |
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.
|
getset |
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.