Sdílet prostřednictvím


WebTestContentValidation Class

Definition

The collection of content validation properties.

public class WebTestContentValidation : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ApplicationInsights.Models.WebTestContentValidation>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ApplicationInsights.Models.WebTestContentValidation>
type WebTestContentValidation = class
    interface IJsonModel<WebTestContentValidation>
    interface IPersistableModel<WebTestContentValidation>
Public Class WebTestContentValidation
Implements IJsonModel(Of WebTestContentValidation), IPersistableModel(Of WebTestContentValidation)
Inheritance
WebTestContentValidation
Implements

Constructors

WebTestContentValidation()

Initializes a new instance of WebTestContentValidation.

Properties

ContentMatch

Content to look for in the return of the WebTest. Must not be null or empty.

IgnoreCase

When set, this value makes the ContentMatch validation case insensitive.

PassIfTextFound

When true, validation will pass if there is a match for the ContentMatch string. If false, validation will fail if there is a match.

Explicit Interface Implementations

IJsonModel<WebTestContentValidation>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<WebTestContentValidation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<WebTestContentValidation>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<WebTestContentValidation>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<WebTestContentValidation>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to