[]
Creates a workbook reference from an absolute URI to a workbook.
This method creates a reference whose base URI is the URI path up to, but not including, the workbook file name. File URIs are not supported. The specified URI must be absolute, must contain a host, and must contain a workbook file name.
public static WorkbookReference FromUri(string uri)
Public Shared Function FromUri(uri As String) As WorkbookReference
| Type | Name | Description |
|---|---|---|
| string | uri | The absolute URI of the workbook. Must not be |
| Type | Description |
|---|---|
| WorkbookReference | A WorkbookReference created from the specified URI. |
WorkbookReference reference = WorkbookReference.FromUri("https://somesite.com/files/sample.xlsx");
string baseUri = reference.BaseUri;
string name = reference.Name;
| Type | Condition |
|---|---|
| ArgumentException | if |