IOpcFileInfo Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The IOpcFileInfo interface defines the following members.

Exists

Gets a value indicating whether a file exists.

C#

bool Exists { get; }


Property Value

Boolean

The value true if the file exists; false if the file does not exist.

IsReadOnly

Gets or sets a value that determines if the current file is read only.

C#

bool IsReadOnly { get; }


Property Value

Boolean

The value true if the current file is read only; otherwise the value false.

Length

Gets the size, in bytes, of the current file.

C#

long Length { get; }


Property Value

Int64

The size of the current file in bytes.

GetMimeType()

Determines the internet media type (mime- or content-type) of the file.

C#

string GetMimeType()


Returns

String

The type name according to the specification of multipurpose internet mail extensions (MIME) of the file represented.

Open(OpcFileMode)

Opens a file in the specified mode.

C#

Stream Open(OpcFileMode mode)


Parameters

mode OpcFileMode

A OpcFileMode value specifying the mode in which to open the file.


Returns

Stream

A file opened in the specified mode.



Exceptions

ArgumentException

The file mode specified is invalid.

Refresh()

Refreshes the state of the object.

C#

void Refresh()



Exceptions

IOException

A device such as a disk drive is not ready.