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: 2017.0.101.17 (2017.0.101.17)

Syntax

C#
public bool ReplaceCurrentPrincipal { get; set; }
Visual Basic
Public Property ReplaceCurrentPrincipal As Boolean
	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.Permissions..::..SecurityPermissionThe caller does not have the permission required to set the principal.

See Also