Visual Guard Class Library Documentation

VGSecurityManager.ReplaceCurrentPrincipal Property

Gets or sets a value indicating if the principal of the current thread (CurrentPrincipal) must be replaced by the Visual Guard principal after an authentication.

public static Boolean ReplaceCurrentPrincipal {get; set;}

Property Value

true to replace the current principal of the thread, false otherwise.

Remarks

Setting this value will only be effective if you set it before using the Authenticate method. By default the value is true. If your application already uses CurrentPrincipal properties (with a WindowsPrincipal for example), you can set the value to false.

See Also

VGSecurityManager Class | Novalys.VisualGuard.Security Namespace