[#NetPermissions-HasFlag]
= xref:NetPermissions.adoc[NetPermissions]::HasFlag
:relfileprefix: ../
:mrdocs:

Test whether a set of flags contains a given flag (or flag combination)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
HasFlag(
    xref:NetPermissionFlags.adoc[NetPermissionFlags] flags,
    xref:NetPermissionFlags.adoc[NetPermissionFlags] f);
----

== Return Value

true if every bit of f is set in flags&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *flags*
| The flags to inspect&period;
| *f*
| The flag or flag combination to test for&period;
|===


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