PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Logging­Properties­Expression­Model Structure / Logging­Properties­Expression­Model Methods / Logging­Properties­Expression­Model.​Contains Method

LoggingPropertiesExpressionModel.Contains Method

Returns true if a logging property with the given name exists.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public bool Contains(
	string property
)

Parameters

property
Type: System.String
Name of a logging property that might exist.

Return Value

Type: Boolean
See Also