NET Logging Library
ValidateUserNameAndKey Method (Log)
Example 



KellermanSoftware.NetLoggingLibrary Namespace > Log Class : ValidateUserNameAndKey Method
Validate current user name and license key
Syntax
Public Shared Function ValidateUserNameAndKey( _
   ByVal notifyOptions As InvalidNotifyOptions _
) As Boolean
Dim notifyOptions As InvalidNotifyOptions
Dim value As Boolean
 
value = Log.ValidateUserNameAndKey(notifyOptions)
public static bool ValidateUserNameAndKey( 
   InvalidNotifyOptions notifyOptions
)
public:
static bool ValidateUserNameAndKey( 
   InvalidNotifyOptions notifyOptions
) 

Parameters

notifyOptions
Example
//Licensed Mode
//Log.UserName = "User Name From Receipt";
//Log.LicenseKey = "LicenseKey From Receipt";
 
InvalidNotifyOptions notifyOptions = InvalidNotifyOptions.LogToAllLocations;
 
bool results = Log.ValidateUserNameAndKey(notifyOptions);
Console.WriteLine(results);
'Licensed Mode
'Log.UserName = "User Name From Receipt";
'Log.LicenseKey = "LicenseKey From Receipt";
 
Dim notifyOptions As InvalidNotifyOptions = InvalidNotifyOptions.LogToAllLocations
 
Dim results As Boolean = Log.ValidateUserNameAndKey(notifyOptions)
Console.WriteLine(results)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Log Class
Log Members