Partager via


LogFilterHelper.GetFilter<T> Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Gets the first filter of type T.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Logging.Filters
Assembly:  Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll)

Syntax

'Declaration
PublicFunctionGetFilter(Of T As {Class, ILogFilter}) As T
public T GetFilter<T>()
where T : class, ILogFilter
public:
generic<typename T>
where T : ref class, ILogFilter
T GetFilter()
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the filter to get.

Return Value

The first filter of type T, or nulla null reference (Nothing in Visual Basic) if there is no such filter.

See Also

LogFilterHelper Class

GetFilter<T> Overload

Microsoft.Practices.EnterpriseLibrary.Logging.Filters Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.