DOMPropertyItem

From Virtual World Web Wiki
Jump to: navigation, search

Represents a single property of a DOM Object. Properties can be accessed directly through a DOM Object's Properties collection (see DOMPropertyCollection) or indirectly through formal C# properties on the parent DOM Object (for example the Color property of a DOMLight object indirectly gets or sets a DOMPropertyItem with the name "Color" in the DOMLight's DOMPropertyCollection).

Remarks [edit]

Properties

DOMAttributeSet Attributes {get;}
A collection of DOM Attributes on this property item (see DOM Attribution
DOMPropertyFlags Flags {get; set;}
Flags that change the behavior of the property. Persistent properties are stored when the DOM is written to disk. Hidden properties are not relayed to connected clients (or the server).
bool IsSystem {get;}
True if this property is backing a formal C# property on its parent DOMObject
string Name {get; set;}
The name of the proeprty
Guid? Sender {get; set;}
Used for property updates to identify the sender of this property item so a change is not relayed back to its sender.
ProtoValue Value {get; set;}
The value of the property

Constructors

DOMPropertyItem(string name, object value)
DOMPropertyItem(string name, object value, DOMPropertyFlags flags, Guid? sender)

Methods

DOMPropertyItem Clone(Guid? sender = NULL)
bool Equals(object obj)
bool Equals(DOMPropertyItem other)
bool Equals(DOMPropertyItem x, DOMPropertyItem y)
int GetHashCode()
int GetHashCode(DOMPropertyItem obj)
void MergeFrom(DOMPropertyItem item)
string ToString()
bool Update(object value, DOMPropertyFlags flags, Guid? sender, bool forceUpdate = false)