WebRequestMethods.File 类

定义

表示可用于 FILE 请求的文件协议方法的类型。Represents the types of file protocol methods that can be used with a FILE request. 无法继承此类。This class cannot be inherited.

public: ref class WebRequestMethods::File abstract sealed
public static class WebRequestMethods.File
type WebRequestMethods.File = class
Public Class WebRequestMethods.File
继承
WebRequestMethods.File

注解

此类的成员可用于设置 Method 属性,该属性确定要用于执行请求的操作(例如复制和检索文件)的协议方法。The members of this class can be used to set the Method property that determines the protocol method that is to be used to perform a requested action, such as copying and retrieving a file.

字段

DownloadFile

表示用来从指定的位置检索文件的 FILE GET 协议方法。Represents the FILE GET protocol method that is used to retrieve a file from a specified location.

UploadFile

表示用来将文件复制到指定位置的 FILE PUT 协议方法。Represents the FILE PUT protocol method that is used to copy a file to a specified location.

适用于