PropertyBag.Any<TProperty> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.