Visual Guard Class Library Documentation

VGSecurityRuntime.ReplaceCurrentPrincipal Property

Gets or sets a value indicating if the principal of the current thread ().

public 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.

Requirements

.NET Framework Security:

See Also

VGSecurityRuntime Class | Novalys.VisualGuard.Security Namespace | CurrentPrincipal