Uredi

Deli z drugimi prek


ByteViewer.SetFile(String) Method

Definition

Sets the file to display in the viewer.

public:
 virtual void SetFile(System::String ^ path);
public virtual void SetFile (string path);
abstract member SetFile : string -> unit
override this.SetFile : string -> unit
Public Overridable Sub SetFile (path As String)

Parameters

path
String

The file path to load from.

Exceptions

path is null.

path is an empty string (""), contains only white space, or contains one or more invalid characters.

The specified path is invalid, such as being on an unmapped drive.

The file load failed.

The specified path, file name, or both exceed the system-defined maximum length.

The access requested is not permitted by the operating system for the specified path, such as when access is Write or ReadWrite and the file or directory is set for read-only access.

Remarks

The viewer loads the data to view from the specified file. This method throws an exception if the file load fails.

Applies to