PostSharp6.5//API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Role­Configuration­Repository Class/Logging­Role­Configuration­Repository Properties/Logging­Role­Configuration­Repository.​Item Property

LoggingRoleConfigurationRepository.Item Property

Gets the LoggingRoleConfiguration for a given role.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.15.0 (6.5.15.0)
Syntax
C#
public LoggingRoleConfiguration this[
	string role
] { get; }

Parameters

role
Type: System.String
The role name. See LoggingRoles for a list of standard roles.

Return Value

Type: LoggingRoleConfiguration
A LoggingRoleConfiguration. If no LoggingRoleConfiguration exist for the specific role, a new instance is created and returned.
See Also