[#NetWhitelistPermissions-TryParse]
= xref:NetWhitelistPermissions.adoc[NetWhitelistPermissions]::TryParse
:relfileprefix: ../
:mrdocs:

Parse a &hyphen;whitelist string into permissions, a subnet, and a connection direction&period;

== Synopsis

Declared in `&lt;net&lowbar;permissions&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
TryParse(
    std::string const& str,
    xref:NetWhitelistPermissions.adoc[NetWhitelistPermissions]& output,
    xref:ConnectionDirection.adoc[ConnectionDirection]& output&lowbar;connection&lowbar;direction,
    xref:bilingual_str.adoc[bilingual&lowbar;str]& error);
----

== Return Value

true if parsing succeeded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| The &hyphen;whitelist configuration string to parse&period;
| *output*
| Receives the parsed permissions and subnet on success&period;
| *output&lowbar;connection&lowbar;direction*
| Receives the connection direction the entry applies to&period;
| *error*
| Receives an error message on failure&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
