[#CBanEntry-2constructor-0ee] = xref:CBanEntry.adoc[CBanEntry]::CBanEntry :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<net_types.h>` Construct an empty ban entry with default field values. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:CBanEntry/2constructor-01.adoc[CBanEntry]() = default; ---- [.small]#xref:CBanEntry/2constructor-01.adoc[_» more..._]# Construct a ban entry with the given creation time. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:CBanEntry/2constructor-02.adoc[CBanEntry](int64_t nCreateTimeIn); ---- [.small]#xref:CBanEntry/2constructor-02.adoc[_» more..._]# Create a ban entry from JSON. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:CBanEntry/2constructor-0ea.adoc[CBanEntry](xref:UniValue.adoc[UniValue] const& json); ---- [.small]#xref:CBanEntry/2constructor-0ea.adoc[_» more..._]# == Exceptions [cols="1,4"] |=== | Name| Thrown on | `std::runtime_error` | if the JSON does not have the expected fields. |=== == Parameters [cols="1,4"] |=== | Name| Description | *nCreateTimeIn* | Unix epoch time (seconds) when the ban was created. | *json* [in] | A JSON representation of a ban entry, as created by `ToJson()`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#