CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
media_type_with_quality_header_value.h
1
2#pragma once
3
4#include <system/nullable.h>
5
6#include <net/http/headers/media_type_header_value.h>
7
8namespace System { namespace Net { namespace Http { namespace Headers {
9
14class ASPOSECPP_SHARED_CLASS MediaTypeWithQualityHeaderValue final
16{
23
25 typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
27 ASPOSECPP_SHARED_RTTI_INFO_DECL();
28
29public:
32 ASPOSECPP_SHARED_API Nullable<double> get_Quality();
35 ASPOSECPP_SHARED_API void set_Quality(Nullable<double> value);
36
38 ASPOSECPP_SHARED_API MediaTypeWithQualityHeaderValue();
41 ASPOSECPP_SHARED_API MediaTypeWithQualityHeaderValue(String mediaType);
45 ASPOSECPP_SHARED_API MediaTypeWithQualityHeaderValue(String mediaType, double quality);
46
55 ASPOSECPP_SHARED_API static bool TryParse(String input, System::SharedPtr<MediaTypeWithQualityHeaderValue>& parsedValue);
56
57private:
61 MEMBER_FUNCTION_MAKE_OBJECT(MediaTypeWithQualityHeaderValue, CODEPORTING_ARGS(System::SharedPtr<MediaTypeWithQualityHeaderValue> source), CODEPORTING_ARGS(source));
62
64 System::SharedPtr<Object> Clone() override;
65};
66
67}}}} // namespace System::Net::Http::Headers
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:16
Represents a MIME type in a value of the 'Content-Type' header. Objects of this class should only be ...
Definition: media_type_header_value.h:21
Represents a MIME type with an additional quality factor in a value of the 'Content-Type' header....
Definition: media_type_with_quality_header_value.h:16
static bool TryParse(String input, System::SharedPtr< MediaTypeWithQualityHeaderValue > &parsedValue)
Tries to convert a passed string to an instance of the MediaTypeWithQualityHeaderValue class.
MediaTypeWithQualityHeaderValue(String mediaType)
Constructs a new instance.
Nullable< double > get_Quality()
Gets a quality value.
MediaTypeWithQualityHeaderValue(String mediaType, double quality)
Constructs a new instance.
void set_Quality(Nullable< double > value)
Sets a quality value.
static System::SharedPtr< MediaTypeWithQualityHeaderValue > Parse(String input)
Converts a passed string to an instance of the MediaTypeWithQualityHeaderValue class.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9