Show / Hide Table of Contents

Class ItemWrapper

Wraps an Aras item so that additional functionality can be easily provided

Inheritance
System.Object
ItemWrapper
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)
System.Object.ToString()
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public abstract class ItemWrapper : IReadOnlyItem, IReadOnlyElement, IAmlNode, IItemRef

Constructors

| Improve this Doc View Source

ItemWrapper(IReadOnlyItem)

Initializes a new instance of the ItemWrapper class.

Declaration
public ItemWrapper(IReadOnlyItem item)
Parameters
Type Name Description
IReadOnlyItem item

The item to wrap.

Properties

| Improve this Doc View Source

AmlContext

Retrieve the context used for rendering primitive values

Declaration
public ElementFactory AmlContext { get; }
Property Value
Type Description
ElementFactory
Implements
IReadOnlyElement.AmlContext
| 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
IReadOnlyElement.Exists
| Improve this Doc View Source

Name

Local XML name of the element (e.g. Item, Relationships, config_id, etc.). To access the property <name>, there will be a method such as NameProp()

Declaration
public string Name { get; }
Property Value
Type Description
System.String

The XML name of the element

Implements
IReadOnlyElement.Name
| Improve this Doc View Source

Parent

Retrieve the parent element

Declaration
public IReadOnlyElement Parent { get; }
Property Value
Type Description
IReadOnlyElement
Implements
IReadOnlyElement.Parent
| Improve this Doc View Source

Value

String value of the element

Declaration
public string Value { get; }
Property Value
Type Description
System.String
Implements
IReadOnlyElement.Value

Methods

| Improve this Doc View Source

Attribute(String)

Retrieve the attribute with the specified name

Declaration
public IReadOnlyAttribute Attribute(string name)
Parameters
Type Name Description
System.String name

Name of the XML attribute

Returns
Type Description
IReadOnlyAttribute
  • If the property exists, a valid IReadOnlyAttribute will be returned
  • If the property does not exists, a "null" IReadOnlyAttribute will be returned where Exists = false
Implements
IReadOnlyElement.Attribute(String)
| Improve this Doc View Source

Attributes()

Retrieve all attributes specified for the element

Declaration
public IEnumerable<IReadOnlyAttribute> Attributes()
Returns
Type Description
System.Collections.Generic.IEnumerable<IReadOnlyAttribute>

An System.Collections.Generic.IEnumerable<T> containing all of the defined attributes

Implements
IReadOnlyElement.Attributes()
| Improve this Doc View Source

Clone()

Creates a duplicate of the item object. All properties (including the ID) are preserved

Declaration
public IItem Clone()
Returns
Type Description
IItem

A mutable copy of the current item

Implements
IReadOnlyItem.Clone()
| Improve this Doc View Source

Elements()

Retrieve all child elements

Declaration
public IEnumerable<IReadOnlyElement> Elements()
Returns
Type Description
System.Collections.Generic.IEnumerable<IReadOnlyElement>
Implements
IReadOnlyElement.Elements()
| Improve this Doc View Source

Id()

The ID of the item as retrieved from either the attribute or the property

Declaration
public string Id()
Returns
Type Description
System.String
Implements
IItemRef.Id()
| Improve this Doc View Source

Property(String)

Returns a reference to the property with the specified name

Declaration
public virtual IReadOnlyProperty Property(string name)
Parameters
Type Name Description
System.String name

Name of the property

Returns
Type Description
IReadOnlyProperty
  • If the property exists, a valid IReadOnlyProperty will be returned
  • If the property does not exists, a "null" IReadOnlyProperty will be returned where Exists = false
Implements
IReadOnlyItem.Property(String)
| Improve this Doc View Source

Property(String, String)

Returns a reference to the property with the specified name and language

Declaration
public virtual 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
  • If the property exists, a valid IReadOnlyProperty will be returned
  • If the property does not exists, a "null" IReadOnlyProperty will be returned where Exists = false
Implements
IReadOnlyItem.Property(String, String)
| Improve this Doc View Source

Relationships()

Returns the set of relationships associated with this item

Declaration
public IEnumerable<IReadOnlyItem> Relationships()
Returns
Type Description
System.Collections.Generic.IEnumerable<IReadOnlyItem>

An System.Collections.Generic.IEnumerable<T> containing all relationship items

Implements
IReadOnlyItem.Relationships()
| Improve this Doc View Source

Relationships(String)

Returns the set of relationships associated with this item of the specified type

Declaration
public 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 type

Implements
IReadOnlyItem.Relationships(String)
| Improve this Doc View Source

ToAml()

Declaration
public string ToAml()
Returns
Type Description
System.String
| 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
IAmlNode.ToAml(XmlWriter, AmlWriterSettings)
| Improve this Doc View Source

TypeName()

The type of the item as retrieved from either the attribute or the property

Declaration
public string TypeName()
Returns
Type Description
System.String
Implements
IItemRef.TypeName()

Extension Methods

Core.Action(IReadOnlyItem)
Core.DoGetItem(IReadOnlyItem)
Core.IdList(IReadOnlyItem)
Core.MaxRecords(IReadOnlyItem)
Core.OrderBy(IReadOnlyItem)
Core.Page(IReadOnlyItem)
Core.PageSize(IReadOnlyItem)
Core.QueryDate(IReadOnlyItem)
Core.QueryType(IReadOnlyItem)
Core.RelatedExpand(IReadOnlyItem)
Core.Select(IReadOnlyItem)
Core.ServerEvents(IReadOnlyItem)
Core.Type(IReadOnlyItem)
Core.TypeId(IReadOnlyItem)
Core.Where(IReadOnlyItem)
Core.Classification(IReadOnlyItem)
Core.ConfigId(IReadOnlyItem)
Core.CreatedById(IReadOnlyItem)
Core.CreatedOn(IReadOnlyItem)
Core.Css(IReadOnlyItem)
Core.CurrentState(IReadOnlyItem)
Core.Generation(IReadOnlyItem)
Core.IdProp(IReadOnlyItem)
Core.IsCurrent(IReadOnlyItem)
Core.IsReleased(IReadOnlyItem)
Core.KeyedName(IReadOnlyItem)
Core.LockedById(IReadOnlyItem)
Core.MajorRev(IReadOnlyItem)
Core.ManagedById(IReadOnlyItem)
Core.MinorRev(IReadOnlyItem)
Core.ModifiedById(IReadOnlyItem)
Core.ModifiedOn(IReadOnlyItem)
Core.NewVersion(IReadOnlyItem)
Core.NotLockable(IReadOnlyItem)
Core.OwnedById(IReadOnlyItem)
Core.PermissionId(IReadOnlyItem)
Core.RelatedId(IReadOnlyItem)
Core.RelatedItem(IReadOnlyItem)
Core.State(IReadOnlyItem)
Core.SourceId(IReadOnlyItem)
Core.SourceItem(IReadOnlyItem)
Core.TeamId(IReadOnlyItem)
ItemExtensions.AsResult(IReadOnlyItem)
ItemExtensions.ToAml(IAmlNode, AmlWriterSettings)
ItemExtensions.ToAml(IAmlNode, XmlWriter)
ItemExtensions.Apply(IReadOnlyItem, IConnection)
ItemExtensions.ApplyAsync(IReadOnlyItem, IAsyncConnection)
ItemExtensions.ApplyAsync(IReadOnlyItem, IAsyncConnection, CancellationToken)
ItemExtensions.ClassStartsWith(IReadOnlyItem, String[])
ItemExtensions.Edit(IItemRef, IConnection, Object[])
ItemExtensions.FetchLockStatus(IItemRef, IConnection)
ItemExtensions.Element(IReadOnlyElement, String)
ItemExtensions.Lock(IItemRef, IConnection)
ItemExtensions.LockStatus(IReadOnlyItem, IConnection)
ItemExtensions.Promote(IItemRef, IConnection, String, String)
ItemExtensions.ToXml(IAmlNode)
ItemExtensions.Unlock(IItemRef, IConnection)
ItemExtensions.LazyMap<T>(IReadOnlyItem, IConnection, Func<IReadOnlyItem, T>)
ItemExtensions.CreateReader(IReadOnlyElement)
ItemExtensions.Parents(IReadOnlyElement)
ItemExtensions.ParentsAndSelf(IReadOnlyElement)
ItemExtensions.InnerText(IReadOnlyElement)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX