log4net SDK Reference |

# WindowsSecurityContext.UserName Property

Gets or sets the Windows username for this security context

[Visual Basic]
Public Property UserName As String
[C#]
public string UserName {get; set;}

#### Property Value

The Windows username for this security context

#### Remarks

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

#### See Also

WindowsSecurityContext Class | log4net.Util Namespace