Click or drag to resize

VGSecurityRuntimeReplaceCurrentPrincipal Property

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

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public bool ReplaceCurrentPrincipal { get; set; }

Property Value

Type: Boolean
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(String, String, VGAuthenticationMode) 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.
.NET Framework Security
PermissionDescription
System.Security.PermissionsSecurityPermissionThe caller does not have the permission required to set the principal.
See Also