ByteViewer.SetFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om