[This is preliminary documentation and is subject to change.]
Syntax
| C# |
|---|
namespace Spielwerke.Data |
| Visual Basic (Declaration) |
|---|
Namespace Spielwerke.Data |
| Visual C++ |
|---|
namespace Spielwerke.Data |
Classes
| Class | Description | |
|---|---|---|
| DisplayLabelAttribute |
Attribute to change a label of a property from its default name
to an arbitrary string.
| |
| NullPropertyHandleException |
Exception class used by the PropertyHandle if the PropertyHandle used
is unexpectedly Null.
| |
| PropertyContainerChangedEventArgs |
Provides data for the PropertyChanged event in IMutablePropertyContainer.
| |
| PropertyException |
Base class for all exceptions generated by Property Library.
| |
| PropertyNotFoundException |
Exception class used by the PropertyHandle if it cannot find a property
with a given name.
| |
| PropertyProviderException |
Exception class which encapsulates all exceptions thrown by property providers.
| |
| SpielwerkeInitializer |
Class used to initalize the Spielwerke.Data library.
| |
| TemporaryObjectPropertyAttribute |
Attach this attribute to properties which return a reference object which is created
in the "get" function. The PropertyHandle will then ensure that changes to the
child properties of those objects will automatically cause a "set" call for the
same property.
| |
| ValueChangedDependencyAttribute |
Attach this attribute to make sure that callbacks using PropertyHandle.AddValueChanged
will not only subscribe to the property of the PropertyHandle but also all other
properties given by this attribute.
|
Structures
| Structure | Description | |
|---|---|---|
| PropertyChain |
Represents the property path, the complete chain of properties from the root to any property in the property tree.
| |
| PropertyHandle |
The PropertyHandle is the central API used by all property consumers to access
the underlying data.
| |
| PropertyHandle..::SyncLock |
Helper object which can be used to synchronize the access of
multiple threads to the data underlying a property handle.
|
Interfaces
| Interface | Description | |
|---|---|---|
| IDisplayLabelAttribute |
Interface used by UserName to determine the property label
displayed to the user.
| |
| IMutablePropertyContainer |
Interface that can be implemented by containers whose properties can be changed during their lifetime
(like lists, dictionaries etc).
| |
| IMutablePropertyContainerRead |
Interface which must be implemented by containers which can change their properties during their lifetime
(like lists, dictionaries etc).
| |
| IPropertyCache |
Any property container which cannot immediately decide if it contains
certain properties (e. g. because the actual container is hold remotely and needs
to be queried over the network) should implement this feature to allow easy access
to child properties of containers not yet copied into the cache.
The interface is used by PropertyHandle automatically, if it is implemented.
|
Delegates
| Delegate | Description | |
|---|---|---|
| PropertyContainerChangedEventHandler |
The event handler used for the events fired if a property container changes its structure.
| |
| PropertyHandle..::AsyncExceptionHandler |
Delegate type used by
PropertyHandle.AsyncRequestTypeAttribute,
PropertyHandle.AsyncRequestPropertyAttribute
or PropertyHandle.AsyncRequestAttribute.
to handle exceptions in the asynchronous call.
| |
| PropertyHandle..::AsyncProcessAttributeDelegate<(Of <AttributeType, UserDataType>)> |
Delegate type for use with
PropertyHandle.AsyncRequestTypeAttribute,
PropertyHandle.AsyncRequestPropertyAttribute
or PropertyHandle.AsyncRequestAttribute.
Triggered upon completion of the asynchronous request.
| |
| PropertyHandle..::PropertyVisitor |
Property visitor delegate, can be passed to VisitProperties(PropertyHandle..::PropertyVisitor)
method.
|
Enumerations
| Enumeration | Description | |
|---|---|---|
| PropertyContainerChangedEventArgs..::ChangeType |
The type of change stored in a PropertyContainerChangedEventArgs object.
| |
| PropertyHandle..::VisitorReturnType |
Return type of the PropertyHandle..::PropertyVisitor, signalling
if the iteration should abort, recurse or continue.
|
Remarks
Property consumers always access the properties through the PropertyHandle class, retrieving additional information required for their functionality through the attributes attached to the property handle.
Property providers are always accessed using the
Dynamic containers whose contents are accessible to the PropertyHandle can be created with the functions Spielwerke.Data.Helpers.ContainerFactory.CreateDictionary and Spielwerke.Data.Helpers.ContainerFactory.CreateList.