Interface IReadOnlyItem
Represents an Aras Item that is read only. By default, the connection object returns IReadOnlyItems to encouarge treating the results as immutable
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IReadOnlyItem : IReadOnlyElement, IAmlNode, IItemRef
Remarks
An IReadOnlyItem only ever represents a single Item
AML tag. It never represents multiple
items, a string, or an exception
<Item>
<prop1>a</prop1>
<prop2>b</prop2>
</Item>
Methods
| Improve this Doc View SourceClone()
Creates a duplicate of the item object. All properties (including the ID) are preserved
Declaration
IItem Clone()
Returns
Type | Description |
---|---|
IItem | A mutable copy of the current item |
Property(String)
Returns a reference to the property with the specified name
Declaration
IReadOnlyProperty Property(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the property |
Returns
Type | Description |
---|---|
IReadOnlyProperty |
|
Property(String, String)
Returns a reference to the property with the specified name and language
Declaration
IReadOnlyProperty 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 |
---|---|
IReadOnlyProperty |
|
Relationships()
Returns the set of relationships associated with this item
Declaration
IEnumerable<IReadOnlyItem> Relationships()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IReadOnlyItem> | An System.Collections.Generic.IEnumerable<T> containing all relationship items |
Relationships(String)
Returns the set of relationships associated with this item of the specified type
Declaration
IEnumerable<IReadOnlyItem> 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<IReadOnlyItem> | An System.Collections.Generic.IEnumerable<T> containing relationship items whose type name is equal to |