Property Class |
Note most objects having Properties collections also have TextItems collections that include named text items localized to the user's culture. As with the Properties collections, TextItems collections are loaded from meta-data and expose meta-data maintained by the studio.
Among the most important objects having Properties collections are:
Namespace: NetQuarry
The Property type exposes the following members.
Name | Description | |
---|---|---|
Property |
ctor
| |
Property(String, Object, PropertyAttrs, String, String, String) |
fast way to construct the object; used by the Properties.Load method
|
Name | Description | |
---|---|---|
Attributes |
Stores the attributes. Should be a mask of PropertyAttrs. Certain
PropertyAttrs such as IsDirty are generally set automatically.
| |
Name |
Stores the property name. Note that the name is the same as the collection's key.
| |
OwnerID |
Gets/Sets the owner ID (for preferences, see Preferences).
| |
OwnerLevel |
Gets/Sets the owner level (for preferences, see Preferences).
| |
ParamID |
The param_id from the xmt_properties table.
Applies only when the property was loaded from the repository.
| |
PropID |
The prop_id from the xmt_properties table.
Applies only when the property was loaded from the repository.
| |
SubObjectID |
Stores the child key (sub_object_id). Note that the obj_id (the main related id)
is the same for the entire collection.
| |
Value |
Stores the value of the property.
Note that the value is an object and a property can therefore be used to store anything.
However, properties loaded from the repository will always be string values and it is
recommended that one of the Properties collection accessor methods be used
to safely extract property values:
|
Name | Description | |
---|---|---|
Clone |
Creates a copy of this property and all of it's members.
| |
CreatePreference |
Create a preference object.
| |
Equals |
The Equals method determines whether the specified object (assumed to be a Property object) is equal to the current Property
(Overrides ObjectEquals(Object).) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
The GetHashCode method serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table
(Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Persist |
Save this property to the IDatabase.
| |
PersistEx |
Persist the current property to the IDatabase.
| |
SafePrefName |
Make a preference name safe (by truncating to maxlength if necessary).
| |
SafePropName |
Make a property name safe (by truncating to maxlength if necessary).
| |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |