System::Net::Http::Headers::HttpContentHeaders 类

HttpContentHeaders class

表示 ‘Content’ 头的集合。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class HttpContentHeaders : public System::Net::Http::Headers::HttpHeaders

方法

方法描述
static AddKnownHeaders(System::SharedPtr<Collections::Generic::HashSet<String>>)将已知的标头添加到指定的集合中。
get_Allow()RTTI 信息。
get_ContentDisposition()获取 ‘Content-Disposition’ 头的值。
get_ContentEncoding()获取 ‘Content-Encoding’ 头的值。
get_ContentLanguage()获取 ‘Content-Language’ 头的值。
get_ContentLength()获取 ‘Content-Length’ 头的值。
get_ContentLocation()获取 ‘Content-Location’ 头的值。
get_ContentMD5()获取 ‘Content-MD5’ 标头的值。
get_ContentRange()获取 ‘Content-Range’ 标头的值。
get_ContentType()获取 ‘Content-Type’ 标头的值。
get_Expires()获取 ‘Expires’ 标头的值。
get_LastModified()获取 ‘Last-Modified’ 标头的值。
HttpContentHeaders(HeaderFunc<Nullable<int64_t>>)构造一个新实例。
set_ContentDisposition(System::SharedPtr<ContentDispositionHeaderValue>)设置 ‘Content-Disposition’ 标头的值。
set_ContentLength(Nullable<int64_t>)设置 ‘Content-Length’ 标头的值。
set_ContentLocation(System::SharedPtr<Uri>)设置 ‘Content-Location’ 标头的值。
set_ContentMD5(System::ArrayPtr<uint8_t>)设置 ‘Content-MD5’ 标头的值。
set_ContentRange(System::SharedPtr<ContentRangeHeaderValue>)设置 ‘Content-Range’ 标头的值。
set_ContentType(System::SharedPtr<MediaTypeHeaderValue>)设置 ‘Content-Type’ 标头的值。
set_Expires(Nullable<DateTimeOffset>)设置 ‘Expires’ 标头的值。
set_LastModified(Nullable<DateTimeOffset>)设置 ‘Last-Modified’ 标头的值。

另见