PostSharpAPI ReferencePost­Sharp.​Patterns.​DiagnosticsLogging­Profile­RepositoryGet­Profile
Open sandboxFocus

LoggingProfileRepository.GetProfile Method

GetProfile(String, Assembly)

Gets a profile given its name and declaring Assembly.

Declaration
public LoggingProfile GetProfile(string name, Assembly assembly)
Parameters
Type Name Description
System.String name

Name of the profile.

Assembly assembly

Assembly in which the profile is defined.

Returns
Type Description
LoggingProfile

A LoggingProfile, or null if assembly does not contain a profile named name.