WindowsSecurityContext UserName Property | Apache log4net™ SDK Documentation

Gets or sets the Windows username for this security context

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public string UserName { get; set; }

    Public Property UserName As String
    	Get
    	Set

    public:
    property String^ UserName {
    	String^ get ();
    	void set (String^ value);
    }

    member UserName : string with get, set

#### Property Value

Type: String
The Windows username for this security context
Remarks

This property must be set if Credentials is set to User (the default setting).

See Also

#### Reference

WindowsSecurityContext Class
log4net.Util Namespace