Open sandboxFocus

Method GetProfile

GetProfile(string, Assembly)

Gets a profile given its name and declaring Assembly.

Declaration
public LoggingProfile GetProfile(string name, Assembly assembly)
Parameters
Type Name Description
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.