[#NetPermissions-HasFlag] = xref:NetPermissions.adoc[NetPermissions]::HasFlag :relfileprefix: ../ :mrdocs: Test whether a set of flags contains a given flag (or flag combination). == Synopsis Declared in `<net_permissions.h>` [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. == Parameters [cols="1,4"] |=== | Name| Description | *flags* | The flags to inspect. | *f* | The flag or flag combination to test for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#