CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
ip_host_entry.h
1
2#pragma once
3
4#include <system/array.h>
5#include <system/object.h>
6#include <system/shared_ptr.h>
7#include <system/string.h>
8
9#include <net/ip_address.h>
10
11namespace System { namespace Net {
12
17class ASPOSECPP_SHARED_CLASS IPHostEntry : public System::Object
18{
20 typedef IPHostEntry ThisType;
23
25 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
27 ASPOSECPP_SHARED_RTTI_INFO_DECL();
28
29public:
32 ASPOSECPP_SHARED_API String get_HostName() const;
35 ASPOSECPP_SHARED_API void set_HostName(String value);
38 ASPOSECPP_SHARED_API System::ArrayPtr<String> get_Aliases();
41 ASPOSECPP_SHARED_API void set_Aliases(System::ArrayPtr<String> value);
48
50 ASPOSECPP_SHARED_API IPHostEntry();
52 ASPOSECPP_SHARED_API String ToString() const override;
53
54private:
56 String hostName;
61};
62}} // namespace System::Net
Represents information about an internet host address. Objects of this class should only be allocated...
Definition: ip_host_entry.h:18
System::ArrayPtr< System::SharedPtr< IPAddress > > get_AddressList()
Gets the collection of IP addresses of the host.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
void set_HostName(String value)
Sets the host name.
System::ArrayPtr< String > get_Aliases()
Gets the collection of aliases of the host.
void set_Aliases(System::ArrayPtr< String > value)
Sets a collection of aliases of the host.
void set_AddressList(System::ArrayPtr< System::SharedPtr< IPAddress > > value)
Sets a collection of IP addresses of the host.
String get_HostName() const
Gets the host name.
IPHostEntry()
Constructs a new instance.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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