共用方式為


ResourceFile.FromUrl Method

Definition

Overloads

FromUrl(String, String, String)

Creates a new ResourceFile from the specified HTTP URL.

FromUrl(String, ComputeNodeIdentityReference, String, String)

Creates a new ResourceFile from the specified HTTP URL.

FromUrl(String, String, String)

Source:
ResourceFile.cs

Creates a new ResourceFile from the specified HTTP URL.

public static Microsoft.Azure.Batch.ResourceFile FromUrl (string httpUrl, string filePath, string fileMode = default);
static member FromUrl : string * string * string -> Microsoft.Azure.Batch.ResourceFile
Public Shared Function FromUrl (httpUrl As String, filePath As String, Optional fileMode As String = Nothing) As ResourceFile

Parameters

httpUrl
String

The URL of the file to download.

filePath
String

The location on the compute node to which to download the file(s), relative to the task's working directory.

fileMode
String

The file permission mode attribute in octal format.

Returns

A ResourceFile from the specified HTTP URL.

Applies to

FromUrl(String, ComputeNodeIdentityReference, String, String)

Source:
ResourceFile.cs

Creates a new ResourceFile from the specified HTTP URL.

public static Microsoft.Azure.Batch.ResourceFile FromUrl (string httpUrl, Microsoft.Azure.Batch.ComputeNodeIdentityReference identityReference, string filePath, string fileMode = default);
static member FromUrl : string * Microsoft.Azure.Batch.ComputeNodeIdentityReference * string * string -> Microsoft.Azure.Batch.ResourceFile
Public Shared Function FromUrl (httpUrl As String, identityReference As ComputeNodeIdentityReference, filePath As String, Optional fileMode As String = Nothing) As ResourceFile

Parameters

httpUrl
String

The URL of the file to download.

identityReference
ComputeNodeIdentityReference

The identity to use for accessing the file in Azure Storage

filePath
String

The location on the compute node to which to download the file(s), relative to the task's working directory.

fileMode
String

The file permission mode attribute in octal format.

Returns

A ResourceFile from the specified HTTP URL.

Applies to