Table of Contents

Class PropertyError

Namespace
Avalonia.Data.Core.Plugins
Assembly
Avalonia.Base.dll

An IPropertyAccessor that represents an error.

public class PropertyError : IPropertyAccessor, IDisposable
Inheritance
PropertyError
Implements
Inherited Members

Constructors

PropertyError(BindingNotification)

Initializes a new instance of the PropertyError class.

public PropertyError(BindingNotification error)

Parameters

error BindingNotification

The error to report.

Properties

PropertyType

Gets the type of the property.

public Type? PropertyType { get; }

Property Value

Type

Exceptions

InvalidOperationException

The accessor has not been subscribed to yet.

Value

Gets the current value of the property.

public object? Value { get; }

Property Value

object

Methods

Dispose()

public void Dispose()

SetValue(object?, BindingPriority)

Sets the property value.

public bool SetValue(object? value, BindingPriority priority)

Parameters

value object

The value to set. Guaranteed to be of a valid type for the property.

priority BindingPriority

The priority with which to set the value.

Returns

bool

True if the property was set; false if the property could not be set.

Subscribe(Action<object>)

Subscribes to the value of the member.

public void Subscribe(Action<object> listener)

Parameters

listener Action<object>

A method that receives the values.

Unsubscribe()

Unsubscribes to the value of the member.

public void Unsubscribe()