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: 3.2.912.1 (3.2.912.01)

Syntax

C#
public bool ReplaceCurrentPrincipal { get; set; }
Visual Basic (Declaration)
Public Property ReplaceCurrentPrincipal As Boolean

Field 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(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.

Permissions

PermissionDescription
System.Security.Permissions..::.SecurityPermissionThe caller does not have the permission required to set the principal.

See Also