Data Stream.Open Uri Method
Returns a stream suitable from reading from a resource specified
by a URI.
Definition
Namespace: Numerics.NET.Data
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
C#
A stream suitable for reading from the resource.
Assembly: Numerics.NET.Data (in Numerics.NET.Data.dll) Version: 4.0.3
public static Stream OpenUri(
string uri,
params string[] extensions
)
Parameters
- uri String
- A URI that can refer to a file on the local file system, or a location on the web.
- extensions String[]
- A list of extensions to try if the specified path cannot be found.
Return Value
StreamA stream suitable for reading from the resource.
Exceptions
Argument | uri is a zero-length string, contains only white space, or contains one or more invalid characters as defined by InvalidPathChars. |
Argument | uri is null. |
Path | The specified path, file name, or both exceed the system-defined maximum length.For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. |
Directory | The specified path is invalid, (for example, it is on an unmapped drive). |
Unauthorized | uri specified a directory. -or- The caller does not have the required permission. |
File | The file specified in path was not found. |
Not | uri is in an invalid format. |
IOException | An I/O error occurred while opening the file. |