PostSharp 6.6 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Profile­Repository Class / Logging­Profile­Repository Methods / Logging­Profile­Repository.​Get­Profile Method

LoggingProfileRepository.GetProfile Method

Gets a profile given its name and declaring Assembly.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.6.14.0 (6.6.14.0)
Syntax
C#
public LoggingProfile GetProfile(
	string name,
	Assembly assembly
)

Parameters

name
Type: System.String
Name of the profile.
assembly
Type: System.Reflection.Assembly
Assembly in which the profile is defined.

Return Value

Type: LoggingProfile
A LoggingProfile, or null if assembly does not contain a profile named name.
See Also