SecurityContextProvider DefaultProvider Property | Apache log4net™ SDK Documentation

Gets or sets the default SecurityContextProvider

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

C#
VB
C++
F#
Copy

    public static SecurityContextProvider DefaultProvider { get; set; }

    Public Shared Property DefaultProvider As SecurityContextProvider
    	Get
    	Set

    public:
    static property SecurityContextProvider^ DefaultProvider {
    	SecurityContextProvider^ get ();
    	void set (SecurityContextProvider^ value);
    }

    static member DefaultProvider : SecurityContextProvider with get, set

#### Property Value

Type: SecurityContextProvider
The default SecurityContextProvider
Remarks

The default provider is used by configured components that require a SecurityContext and have not had one given to them.

By default this is an instance of SecurityContextProvider that returns NullSecurityContext objects.

The default provider can be set programmatically by setting the value of this property to a sub class of SecurityContextProvider that has the desired behavior.

See Also

#### Reference

SecurityContextProvider Class
log4net.Core Namespace