NET Logging Library
ValidateUserNameAndKey Method (ConcreteLog)
Example 



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

Parameters

notifyOptions
Example
ConcreteLog logger = new ConcreteLog();
 
//Licensed Mode
//logger.UserName = "User Name From Receipt";
//logger.LicenseKey = "LicenseKey From Receipt";
 
InvalidNotifyOptions notifyOptions = InvalidNotifyOptions.LogToAllLocations;
 
bool results = logger.ValidateUserNameAndKey(notifyOptions);
Console.WriteLine(results);
Dim logger As New ConcreteLog()
 
'Licensed Mode
'logger.UserName = "User Name From Receipt";
'logger.LicenseKey = "LicenseKey From Receipt";
 
Dim notifyOptions As InvalidNotifyOptions = InvalidNotifyOptions.LogToAllLocations
 
Dim results As Boolean = logger.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

ConcreteLog Class
ConcreteLog Members