Class Item
Wraps an AML object with a API which is compatible with
Aras's IOM
Inheritance
System.Object
Item
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Innovator.Client.dll
Syntax
public class Item : IReadOnlyResult, IItem, IElement, IReadOnlyItem, IReadOnlyElement, IAmlNode, IItemRef, IEnumerable<Item>, IEnumerable
Properties
|
Improve this Doc
View Source
AmlContext
Retrieve the context used for rendering primitive values
Declaration
public ElementFactory AmlContext { get; }
Property Value
Implements
|
Improve this Doc
View Source
Exception
Return an exception (if there is one), otherwise, return null
Declaration
public ServerException Exception { get; }
Property Value
Implements
|
Improve this Doc
View Source
Exists
Returns true if this element actually exists in the underlying AML,
otherwise, returns false to indicate that the element is just a null placeholder
put in place to reduce unnecessary null reference checks
Declaration
public bool Exists { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Implements
|
Improve this Doc
View Source
Message
Get messages (such as permissions warnings) from the database
Declaration
public IReadOnlyElement Message { get; }
Property Value
Implements
|
Improve this Doc
View Source
Name
Local XML name of the element
Declaration
public string Name { get; }
Property Value
| Type |
Description |
| System.String |
|
Implements
|
Improve this Doc
View Source
Parent
Retrieve the parent element
Declaration
public IElement Parent { get; }
Property Value
Implements
|
Improve this Doc
View Source
Value
Return the string value of the result
Declaration
public string Value { get; }
Property Value
| Type |
Description |
| System.String |
|
Implements
Methods
|
Improve this Doc
View Source
Add(Object)
Add new content to the element
Declaration
public IElement Add(object content)
Parameters
| Type |
Name |
Description |
| System.Object |
content |
IElement, IAttribute, or System.Object to add as a child of the element
|
Returns
| Type |
Description |
| IElement |
The current element for chaining additional calls
|
Implements
|
Improve this Doc
View Source
addRelationship(Item)
Add specified item as a relationship item to the instance.
Declaration
public void addRelationship(Item item)
Parameters
| Type |
Name |
Description |
| Item |
item |
Item(s) to be added to item's relationships.
|
|
Improve this Doc
View Source
appendItem(Item)
Declaration
public void appendItem(Item item)
Parameters
| Type |
Name |
Description |
| Item |
item |
Item to append.
|
|
Improve this Doc
View Source
apply()
Declaration
Returns
| Type |
Description |
| Item |
An Item containing result of the AML call
|
|
Improve this Doc
View Source
apply(String)
Sets the action property and applies the AML.
Declaration
public Item apply(string action)
Parameters
| Type |
Name |
Description |
| System.String |
action |
The action.
|
Returns
| Type |
Description |
| Item |
An Item containing result of the AML call
|
|
Improve this Doc
View Source
AssertItem(String)
Return a single item. If that is not possible, throw an appropriate
exception (e.g. the exception returned by the server where possible)
Declaration
public IReadOnlyItem AssertItem(string type = null)
Parameters
| Type |
Name |
Description |
| System.String |
type |
If specified, throw an exception if the item doesn't have the specified type
|
Returns
Implements
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
|
|
Improve this Doc
View Source
AssertItems()
Return an enumerable of items. Throw an exception for any error including 'No items found'
Declaration
public IEnumerable<IReadOnlyItem> AssertItems()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<IReadOnlyItem> |
|
Implements
|
Improve this Doc
View Source
AssertNoError()
Do nothing other than throw an exception if there is an error other than 'No Items Found'
Declaration
public IReadOnlyResult AssertNoError()
Returns
Implements
|
Improve this Doc
View Source
Attribute(String)
Retrieve the attribute with the specified name
Declaration
public IAttribute Attribute(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
Name of the XML attribute
|
Returns
Implements
|
Improve this Doc
View Source
Attributes()
Retrieve all attributes specified for the element
Declaration
public IEnumerable<IAttribute> Attributes()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<IAttribute> |
|
Implements
|
Improve this Doc
View Source
Clone()
Creates a duplicate of the item object. All properties (including the ID) are preserved
Declaration
Returns
| Type |
Description |
| IItem |
A mutable copy of the current item
|
Implements
|
Improve this Doc
View Source
clone(Boolean)
Declaration
public Item clone(bool cloneRelationships)
Parameters
| Type |
Name |
Description |
| System.Boolean |
cloneRelationships |
If true, all relationships of
the item are cloned as well.
|
Returns
| Type |
Description |
| Item |
Cloned item.
|
|
Improve this Doc
View Source
createPropertyItem(String, String, String)
Creates an item with the specified type and action and sets
it as the specified property of this item.
Declaration
public Item createPropertyItem(string propName, string type, string action)
Parameters
| Type |
Name |
Description |
| System.String |
propName |
Name of the property.
|
| System.String |
type |
Type of the item property.
|
| System.String |
action |
Name of the action that will be set on the item
property.
|
Returns
| Type |
Description |
| Item |
Created item with the specified type and action.
|
|
Improve this Doc
View Source
Creates an item with the specified type and action and sets it as the
related item on this item.
Declaration
public Item createRelatedItem(string type, string action)
Parameters
| Type |
Name |
Description |
| System.String |
type |
Type of the related item.
|
| System.String |
action |
Name of the action that will be set on created
related item.
|
Returns
| Type |
Description |
| Item |
Created related item with specified type and action.
|
|
Improve this Doc
View Source
createRelationship(String, String)
Creates new <Item> node with specified 'type' and 'action'
under <Relationships> node.
Declaration
public Item createRelationship(string type, string action)
Parameters
| Type |
Name |
Description |
| System.String |
type |
Value of attribute 'type' that will be set on the
created <Item> node.
|
| System.String |
action |
Value of attribute 'action' that will be set on
the created <Item> node.
|
Returns
| Type |
Description |
| Item |
Item that reference newly created <Item> node.
|
|
Improve this Doc
View Source
Elements()
Retrieve all child elements
Declaration
public IEnumerable<IElement> Elements()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<IElement> |
|
Implements
|
Improve this Doc
View Source
fetchDefaultPropertyValues(Boolean)
Fetches from server default values for all properties of the item's
ItemType and sets them on the item.
Declaration
public Item fetchDefaultPropertyValues(bool overwrite_current)
Parameters
| Type |
Name |
Description |
| System.Boolean |
overwrite_current |
If true, overwrite existing property
values.
|
Returns
| Type |
Description |
| Item |
If fetching failed, returns "error" item that contains information
about the failure. Otherwise, returns this with set property values.
|
|
Improve this Doc
View Source
fetchLockStatus()
Fetches from the server the locked status of the item using the item's ID.
Declaration
public int fetchLockStatus()
Returns
| Type |
Description |
| System.Int32 |
| Value | Meaning |
|---|
| -1 | failed to fetch item's lock status from server | | 0 | 0 not locked | | 1 | 1 locked by user | | 2 | 2 locked by other |
|
|
Improve this Doc
View Source
fetchRelationships(String)
Fetches relationships of specified type from the server and sets them on the item.
Declaration
public Item fetchRelationships(string relationshipTypeName)
Parameters
| Type |
Name |
Description |
| System.String |
relationshipTypeName |
Name of the relationship type.
|
Returns
| Type |
Description |
| Item |
It returns this.
|
Exceptions
|
Improve this Doc
View Source
fetchRelationships(String, String)
Fetches relationships of specified type from the server and sets them on the item.
Declaration
public Item fetchRelationships(string relationshipTypeName, string selectList)
Parameters
| Type |
Name |
Description |
| System.String |
relationshipTypeName |
Name of the relationship type.
|
| System.String |
selectList |
Select list that is set on attribute select of the request
|
Returns
| Type |
Description |
| Item |
It returns this.
|
Exceptions
|
Improve this Doc
View Source
fetchRelationships(String, String, String)
Fetches relationships of specified type from the server and sets them on the item.
Declaration
public Item fetchRelationships(string relationshipTypeName, string selectList, string orderBy)
Parameters
| Type |
Name |
Description |
| System.String |
relationshipTypeName |
Name of the relationship type.
|
| System.String |
selectList |
Select list that is set on attribute select of the request
|
| System.String |
orderBy |
The value is set on attribute orderBy of the request
|
Returns
| Type |
Description |
| Item |
It returns this.
|
Exceptions
|
Improve this Doc
View Source
getAction()
Returns the action attribute from the Item node.
Declaration
public string getAction()
Returns
| Type |
Description |
| System.String |
Value of the action attribute if the attribute exists, null
otherwise
|
|
Improve this Doc
View Source
getAttribute(String)
Returns value of the attribute with the specified name on the item's node.
Declaration
public string getAttribute(string attributeName)
Parameters
| Type |
Name |
Description |
| System.String |
attributeName |
The qualified name of the attribute.
|
Returns
| Type |
Description |
| System.String |
Attribute value or null if the attribute doesn't exist
|
|
Improve this Doc
View Source
getAttribute(String, String)
Returns value of the attribute with the specified name on the item's node.
Declaration
public string getAttribute(string attributeName, string defaultValue)
Parameters
| Type |
Name |
Description |
| System.String |
attributeName |
The qualified name of the attribute.
|
| System.String |
defaultValue |
Default value of the attribute.
|
Returns
| Type |
Description |
| System.String |
Attribute value or defaultValue if the attribute doesn't
exist
|
|
Improve this Doc
View Source
GetEnumerator()
Returns an enumerator that iterates through the items in the collection.
Declaration
public IEnumerator<Item> GetEnumerator()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerator<Item> |
An enumerator that can be used to iterate through the items in the collection.
|
Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
|
Improve this Doc
View Source
getErrorCode()
Gets the error code of the "error" item.
Declaration
public string getErrorCode()
Returns
| Type |
Description |
| System.String |
Value of <faultcode>. If the item is not an "error" item, null
is returned.
|
|
Improve this Doc
View Source
getErrorDetail()
Returns details of the error item.
Declaration
public string getErrorDetail()
Returns
| Type |
Description |
| System.String |
If the instance is not an error item, null is returned.
|
|
Improve this Doc
View Source
getErrorSource()
Returns the content of the <faultactor> element of SOAP Fault element.
Declaration
public string getErrorSource()
Returns
| Type |
Description |
| System.String |
If the instance is not an error item, null is returned.
|
|
Improve this Doc
View Source
getErrorString()
Returns the error message.
Declaration
public string getErrorString()
Returns
| Type |
Description |
| System.String |
The returned value is obtained from the <faultstring> tag of
<Fault>. If the instance is not an error item, null is returned.
|
|
Improve this Doc
View Source
getID()
Returns ID of the Item node. According to AML standard ID could be set on
<Item> either as the attribute with name 'id' or as a sub-tag
<id> (i.e. item property) or both.
Declaration
Returns
| Type |
Description |
| System.String |
ID of the item or null if ID was not found.
|
|
Improve this Doc
View Source
getInnovator()
Returns instance of Innovator this Item "belongs" to.
Declaration
public Innovator getInnovator()
Returns
|
Improve this Doc
View Source
getItemByIndex(Int32)
Declaration
public Item getItemByIndex(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
The 0-based index.
|
Returns
| Type |
Description |
| Item |
Found item
|
|
Improve this Doc
View Source
getItemCount()
Returns the number of items that the instance represents.
Declaration
public int getItemCount()
Returns
| Type |
Description |
| System.Int32 |
| Value | Condition |
|---|
| 0 | The item contains an exception of type NoItemsFoundException | | -1 | The item is not NoItemsFoundException and does not contain any items | | N | Where N >= 1 and N is the number of items contained in the instance |
|
|
Improve this Doc
View Source
getLockStatus()
Gets item's lock status based on the property locked_by_id.
Declaration
public int getLockStatus()
Returns
| Type |
Description |
| System.Int32 |
Like with the LockStatusType enumeration, the values are
| Value | Description |
|---|
| 0 | The item is not locked | | 1 | The item is locked by the user | | 2 | The item is locked by the someone else |
|
|
Improve this Doc
View Source
getNewID()
Generate new 32 character hex string globally unique identifier.
Declaration
Returns
| Type |
Description |
| System.String |
GUID as a string
|
|
Improve this Doc
View Source
getParentItem()
Returns a parent item of the instance.
Declaration
public Item getParentItem()
Returns
| Type |
Description |
| Item |
If there is no parent, null is returned
|
|
Improve this Doc
View Source
getProperty(String)
Gets value of the property with the specified name.
Declaration
public string getProperty(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
Name of the property.
|
Returns
| Type |
Description |
| System.String |
If the property is an item-property, ID of the item-property is returned. If the
property doesn't exist or it's an item-property without ID, null is returned;
otherwise the method returns value of the specified property. Note, that if the property
has attribute is_null set to 1 and the property value is empty string (e.g.
<p1 is_null='1'/> or <p1 is_null='1'></p1>) then the
property value is interpreted as null.
|
|
Improve this Doc
View Source
getProperty(String, String)
Gets value of the property with the specified name.
Declaration
public string getProperty(string propertyName, string defaultValue)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
Name of the property.
|
| System.String |
defaultValue |
Default value of the property.
|
Returns
| Type |
Description |
| System.String |
If the property is an item-property, ID of the item-property is returned. If the
property doesn't exist or it's an item-property without ID, defaultValue
is returned; otherwise the method returns value of the specified property. Note, that if
the property has attribute is_null set to 1 and the property value is empty string
(e.g. <p1 is_null='1'/> or <p1 is_null='1'></p1>) then the
property value is interpreted as null.
|
|
Improve this Doc
View Source
getProperty(String, String, String)
Gets value of the property with the specified name.
Declaration
public string getProperty(string propertyName, string defaultValue, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
Name of the property.
|
| System.String |
defaultValue |
Default value of the property.
|
| System.String |
lang |
Language for which the property value has to be returned. If null
value is passed, the language of the current session is assumed.
|
Returns
| Type |
Description |
| System.String |
If the property is an item-property, ID of the item-property is returned. If the
property doesn't exist or it's an item-property without ID, defaultValue
is returned; otherwise the method returns value of the specified property. Note, that if
the property has attribute is_null set to 1 and the property value is empty string
(e.g. <p1 is_null='1'/> or <p1 is_null='1'></p1>) then the
property value is interpreted as null.
|
|
Improve this Doc
View Source
getPropertyAttribute(String, String)
Declaration
public string getPropertyAttribute(string propertyName, string attributeName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
attributeName |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
getPropertyAttribute(String, String, String)
Declaration
public string getPropertyAttribute(string propertyName, string attributeName, string defaultValue)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
attributeName |
|
| System.String |
defaultValue |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
getPropertyAttribute(String, String, String, String)
Declaration
public string getPropertyAttribute(string propertyName, string attributeName, string defaultValue, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
attributeName |
|
| System.String |
defaultValue |
|
| System.String |
lang |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
getPropertyCondition(String)
Declaration
public string getPropertyCondition(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
getPropertyCondition(String, String)
Declaration
public string getPropertyCondition(string propertyName, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
lang |
|
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
getPropertyItem(String)
Declaration
public Item getPropertyItem(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
Returns
|
Improve this Doc
View Source
Declaration
public Item getRelatedItem()
Returns
|
Improve this Doc
View Source
Declaration
public string getRelatedItemID()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
getRelationships()
Declaration
public Item getRelationships()
Returns
|
Improve this Doc
View Source
getRelationships(String)
Declaration
public Item getRelationships(string itemTypeName)
Parameters
| Type |
Name |
Description |
| System.String |
itemTypeName |
|
Returns
|
Improve this Doc
View Source
getResult()
Declaration
public string getResult()
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
getType()
Declaration
Returns
| Type |
Description |
| System.String |
|
|
Improve this Doc
View Source
Id()
The ID of the item as retrieved from either the attribute or the property
Declaration
Returns
| Type |
Description |
| System.String |
|
Implements
|
Improve this Doc
View Source
isCollection()
Declaration
public bool isCollection()
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
isEmpty()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
isError()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
isLogical()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
isNew()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
isRoot()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Items()
Return an enumerable of items. Throw an exception if there is an error other than 'No Items Found'
Declaration
public IEnumerable<IReadOnlyItem> Items()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<IReadOnlyItem> |
|
Implements
|
Improve this Doc
View Source
loadAML(String)
Declaration
public void loadAML(string AML)
Parameters
| Type |
Name |
Description |
| System.String |
AML |
|
|
Improve this Doc
View Source
newItem()
Declaration
Returns
|
Improve this Doc
View Source
newItem(String)
Declaration
public Item newItem(string itemTypeName)
Parameters
| Type |
Name |
Description |
| System.String |
itemTypeName |
|
Returns
|
Improve this Doc
View Source
newItem(String, String)
Declaration
public Item newItem(string itemTypeName, string action)
Parameters
| Type |
Name |
Description |
| System.String |
itemTypeName |
|
| System.String |
action |
|
Returns
|
Improve this Doc
View Source
Declaration
public Item promote(string state, string comments)
Parameters
| Type |
Name |
Description |
| System.String |
state |
|
| System.String |
comments |
|
Returns
|
Improve this Doc
View Source
Property(String)
Returns a reference to the property with the specified name
Declaration
public IProperty Property(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
Name of the property
|
Returns
| Type |
Description |
| IProperty |
- If the property exists, a valid IProperty will be returned
- If the property does not exists, a "null" IProperty will be returned where Exists =
false
|
Implements
|
Improve this Doc
View Source
Property(String, String)
Returns a reference to the property with the specified name and language
Declaration
public IProperty Property(string name, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
name |
Name of the property
|
| System.String |
lang |
Language of the (multilingual) property
|
Returns
| Type |
Description |
| IProperty |
- If the property exists, a valid IProperty will be returned
- If the property does not exists, a "null" IProperty will be returned where Exists =
false
|
Implements
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
|
|
Improve this Doc
View Source
Relationships()
Returns the set of relationships associated with this item
Declaration
public IRelationships Relationships()
Returns
Implements
|
Improve this Doc
View Source
Relationships(String)
Returns the set of relationships associated with this item of the specified type
Declaration
public IEnumerable<IItem> Relationships(string type)
Parameters
| Type |
Name |
Description |
| System.String |
type |
Name of the ItemType for the relationships you wish to retrieve
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<IItem> |
|
Implements
|
Improve this Doc
View Source
Remove()
Remove the element from its parent
Declaration
Implements
|
Improve this Doc
View Source
removeAttribute(String)
Declaration
public void removeAttribute(string attributeName)
Parameters
| Type |
Name |
Description |
| System.String |
attributeName |
|
|
Improve this Doc
View Source
RemoveAttributes()
Remove attributes from the element
Declaration
public void RemoveAttributes()
Implements
|
Improve this Doc
View Source
removeItem(Item)
Declaration
public void removeItem(Item item)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
|
Improve this Doc
View Source
RemoveNodes()
Remove child nodes from the element
Declaration
public void RemoveNodes()
Implements
|
Improve this Doc
View Source
removeProperty(String)
Declaration
public void removeProperty(string propertyName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
|
Improve this Doc
View Source
removeProperty(String, String)
Declaration
public void removeProperty(string propertyName, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
lang |
|
|
Improve this Doc
View Source
removePropertyAttribute(String, String)
Declaration
public void removePropertyAttribute(string propertyName, string attributeName)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
attributeName |
|
|
Improve this Doc
View Source
removePropertyAttribute(String, String, String)
Declaration
public void removePropertyAttribute(string propertyName, string attributeName, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
attributeName |
|
| System.String |
lang |
|
|
Improve this Doc
View Source
removeRelationship(Item)
Declaration
public void removeRelationship(Item item)
Parameters
| Type |
Name |
Description |
| Item |
item |
|
|
Improve this Doc
View Source
setAction(String)
Declaration
public void setAction(string action)
Parameters
| Type |
Name |
Description |
| System.String |
action |
|
|
Improve this Doc
View Source
setAttribute(String, String)
Declaration
public void setAttribute(string attributeName, string attributeValue)
Parameters
| Type |
Name |
Description |
| System.String |
attributeName |
|
| System.String |
attributeValue |
|
|
Improve this Doc
View Source
setID(String)
Declaration
public void setID(string id)
Parameters
| Type |
Name |
Description |
| System.String |
id |
|
|
Improve this Doc
View Source
setNewId()
Declaration
|
Improve this Doc
View Source
setProperty(String, Object)
Declaration
public void setProperty(string propertyName, object propertyValue)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.Object |
propertyValue |
|
|
Improve this Doc
View Source
setProperty(String, Object, String)
Declaration
public void setProperty(string propertyName, object propertyValue, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.Object |
propertyValue |
|
| System.String |
lang |
|
|
Improve this Doc
View Source
setPropertyAttribute(String, String, String)
Declaration
public void setPropertyAttribute(string propertyName, string attributeName, string attributeValue)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
attributeName |
|
| System.String |
attributeValue |
|
|
Improve this Doc
View Source
setPropertyAttribute(String, String, String, String)
Declaration
public void setPropertyAttribute(string propertyName, string attributeName, string attributeValue, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
attributeName |
|
| System.String |
attributeValue |
|
| System.String |
lang |
|
|
Improve this Doc
View Source
setPropertyCondition(String, String)
Declaration
public void setPropertyCondition(string propertyName, string condition)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
condition |
|
|
Improve this Doc
View Source
setPropertyCondition(String, String, String)
Declaration
public void setPropertyCondition(string propertyName, string condition, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| System.String |
condition |
|
| System.String |
lang |
|
|
Improve this Doc
View Source
setPropertyItem(String, Item)
Declaration
public Item setPropertyItem(string propertyName, Item item)
Parameters
| Type |
Name |
Description |
| System.String |
propertyName |
|
| Item |
item |
|
Returns
|
Improve this Doc
View Source
Declaration
public void setRelatedItem(Item ritem)
Parameters
| Type |
Name |
Description |
| Item |
ritem |
|
|
Improve this Doc
View Source
setType(String)
Declaration
public void setType(string itemTypeName)
Parameters
| Type |
Name |
Description |
| System.String |
itemTypeName |
|
|
Improve this Doc
View Source
ToAml(XmlWriter, AmlWriterSettings)
Write the node to the specified System.Xml.XmlWriter as AML
Declaration
public void ToAml(XmlWriter writer, AmlWriterSettings settings)
Parameters
| Type |
Name |
Description |
| System.Xml.XmlWriter |
writer |
System.Xml.XmlWriter to write the node to
|
| AmlWriterSettings |
settings |
Settings controlling how the node is written
|
Implements
|
Improve this Doc
View Source
ToAmlRoot()
Returns the AML of the root parent
Declaration
public string ToAmlRoot()
Returns
| Type |
Description |
| System.String |
The AML of the root parent
|
|
Improve this Doc
View Source
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
| Type |
Description |
| System.String |
A System.String that represents this instance.
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
TypeName()
The type of the item as retrieved from either the attribute or the property
Declaration
Returns
| Type |
Description |
| System.String |
|
Implements
Explicit Interface Implementations
|
Improve this Doc
View Source
IReadOnlyElement.Attribute(String)
Declaration
IReadOnlyAttribute IReadOnlyElement.Attribute(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
Implements
|
Improve this Doc
View Source
IReadOnlyElement.Attributes()
Declaration
IEnumerable<IReadOnlyAttribute> IReadOnlyElement.Attributes()
Returns
Implements
|
Improve this Doc
View Source
IReadOnlyElement.Elements()
Declaration
IEnumerable<IReadOnlyElement> IReadOnlyElement.Elements()
Returns
Implements
|
Improve this Doc
View Source
IReadOnlyElement.Parent
Retrieve the parent element
Declaration
IReadOnlyElement IReadOnlyElement.Parent { get; }
Returns
Implements
|
Improve this Doc
View Source
IReadOnlyItem.Property(String)
Declaration
IReadOnlyProperty IReadOnlyItem.Property(string name)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
Returns
Implements
|
Improve this Doc
View Source
IReadOnlyItem.Property(String, String)
Declaration
IReadOnlyProperty IReadOnlyItem.Property(string name, string lang)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.String |
lang |
|
Returns
Implements
|
Improve this Doc
View Source
IReadOnlyItem.Relationships()
Declaration
IEnumerable<IReadOnlyItem> IReadOnlyItem.Relationships()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<IReadOnlyItem> |
|
Implements
|
Improve this Doc
View Source
IReadOnlyItem.Relationships(String)
Declaration
IEnumerable<IReadOnlyItem> IReadOnlyItem.Relationships(string type)
Parameters
| Type |
Name |
Description |
| System.String |
type |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<IReadOnlyItem> |
|
Implements
|
Improve this Doc
View Source
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Implements
System.Collections.IEnumerable.GetEnumerator()
Extension Methods