CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
name_value_with_parameters_header_value.h
1
2#pragma once
3
4#include <system/collections/icollection.h>
5
6#include <net/http/headers/name_value_header_value.h>
7
8namespace System { namespace Net { namespace Http { namespace Headers {
9
14class ASPOSECPP_SHARED_CLASS NameValueWithParametersHeaderValue
16{
23
25 typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
27 ASPOSECPP_SHARED_RTTI_INFO_DECL();
28
29public:
34
37 ASPOSECPP_SHARED_API NameValueWithParametersHeaderValue(String name);
41 ASPOSECPP_SHARED_API NameValueWithParametersHeaderValue(String name, String value);
43 ASPOSECPP_SHARED_API NameValueWithParametersHeaderValue();
44
46 ASPOSECPP_SHARED_API bool Equals(System::SharedPtr<Object> obj) override;
47
49 ASPOSECPP_SHARED_API int32_t GetHashCode() const override;
51 ASPOSECPP_SHARED_API String ToString() const override;
60 ASPOSECPP_SHARED_API static bool TryParse(String input, System::SharedPtr<NameValueWithParametersHeaderValue>& parsedValue);
67 ASPOSECPP_SHARED_API static int32_t GetNameValueWithParametersLength(String input, int32_t startIndex,
68 System::SharedPtr<Object>& parsedValue);
69
70protected:
74 MEMBER_FUNCTION_MAKE_OBJECT(NameValueWithParametersHeaderValue, CODEPORTING_ARGS(System::SharedPtr<NameValueWithParametersHeaderValue> source), CODEPORTING_ARGS(source));
75
76private:
81
83 static System::SharedPtr<NameValueHeaderValue> CreateNameValue();
85 System::SharedPtr<Object> Clone() override;
86};
87
88}}}} // 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 key/value pair to use in headers. Objects of this class should only be allocated using S...
Definition: name_value_header_value.h:25
Represents a key/value pair with parameters to use in headers. Objects of this class should only be a...
Definition: name_value_with_parameters_header_value.h:16
NameValueWithParametersHeaderValue(System::SharedPtr< NameValueWithParametersHeaderValue > source)
The copy constructor.
static System::SharedPtr< NameValueWithParametersHeaderValue > Parse(String input)
Converts a passed string to an instance of the NameValueWithParametersHeaderValue class.
System::SharedPtr< Collections::Generic::ICollection< System::SharedPtr< NameValueHeaderValue > > > get_Parameters()
Returns parameters from the current instance.
NameValueWithParametersHeaderValue(String name)
Constructs a new instance.
static int32_t GetNameValueWithParametersLength(String input, int32_t startIndex, System::SharedPtr< Object > &parsedValue)
Converts a passed string from the specified index to an instance of the NameValueWithParametersHeader...
static bool TryParse(String input, System::SharedPtr< NameValueWithParametersHeaderValue > &parsedValue)
Tries to convert a passed string to an instance of the NameValueWithParametersHeaderValue class.
int32_t GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
NameValueWithParametersHeaderValue(String name, String value)
Constructs a new instance.
bool Equals(System::SharedPtr< Object > obj) override
Compares objects using C# Object.Equals semantics.
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
System::MulticastDelegate< TResult()> HeaderFunc
Definition: http_headers.h:24
Definition: db_command.h:9