PropertyBag.Any<TProperty> Method

Definition

Determines whether the bag contains a property of the specified type.

public bool Any<TProperty>() where TProperty : Microsoft.Testing.Platform.Extensions.Messages.IProperty;
member this.Any : unit -> bool (requires 'Property :> Microsoft.Testing.Platform.Extensions.Messages.IProperty)
Public Function Any(Of TProperty As IProperty) () As Boolean

Type Parameters

TProperty

The type of the property.

Returns

true if the bag contains a property of the specified type; false otherwise.

Applies to