RegisterLogFlag Method
- Last UpdatedNov 06, 2025
- 1 minute read
The register log flag.
'Declaration
<SuppressMessageAttribute("Microsoft.Performance",
"CA1811:AvoidUncalledPrivateCode",
Justification="Method does not have to be used by all clients of the Logger.")>
Friend Shared Function RegisterLogFlag( _
ByVal hIdentity As Integer, _
ByVal nCustomFlag As Integer, _
ByVal strFlag As String _
) As Integer
'Usage
Dim hIdentity As Integer
Dim nCustomFlag As Integer
Dim strFlag As String
Dim value As Integer
value = NativeMethods.RegisterLogFlag(hIdentity, nCustomFlag, strFlag)
[SuppressMessage("Microsoft.Performance",
"CA1811:AvoidUncalledPrivateCode",
Justification="Method does not have to be used by all clients of the Logger.")]
internal static int RegisterLogFlag(
int hIdentity,
int nCustomFlag,
string strFlag
)
Parameters
- hIdentity
- The h identity.
- nCustomFlag
- The n custom flag.
- strFlag
- The log flag name.
Return Value
Log flag handle