Show / Hide Table of Contents

Interface IProperty_Item<T>

Property of type item

Inherited Members
IReadOnlyProperty_Item<T>.AsGuid()
IReadOnlyProperty_Item<T>.AsGuid(Guid)
IProperty_Base.Set(Object)
IElement.Attribute(String)
IElement.Attributes()
IElement.Elements()
IElement.Parent
IElement.Add(Object)
IElement.Remove()
IElement.RemoveAttributes()
IElement.RemoveNodes()
IReadOnlyElement.AmlContext
IReadOnlyElement.Exists
IReadOnlyElement.Name
IReadOnlyElement.Value
IAmlNode.ToAml(XmlWriter, AmlWriterSettings)
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public interface IProperty_Item<in T> : IReadOnlyProperty_Item<T>, IProperty_Base, IElement, IReadOnlyProperty_Base, IReadOnlyElement, IAmlNode
Type Parameters
Name Description
T

Methods

| Improve this Doc View Source

AsItem()

Value converted to a IItem. If the value cannot be converted, a 'null' item (where the Exists property returns false) is returned

Declaration
IItem AsItem()
Returns
Type Description
IItem
Examples

After executing the code

var item = aml.FromXml(@"<Item type='File'>
 <created_by_id keyed_name="John Smith" type="User">A5CE5E3B4E3846D8A15C1C9300EAF7B4</created_by_id>
</Item>").AssertItem();
var creator = item.CreatedById().AsItem();

the structure of creator will be

<Item type='User' id='A5CE5E3B4E3846D8A15C1C9300EAF7B4'gt;
 <id keyed_name="John Smith" type="User">A5CE5E3B4E3846D8A15C1C9300EAF7B4</id>
 <keyed_name>John Smith</keyed_name>
</Item>

Extension Methods

Core.Condition(IProperty_Base)
Core.IsNull(IProperty_Base)
Core.KeyedName(IProperty_Base)
Core.Type(IProperty_Base)
Core.Condition(IReadOnlyProperty_Base)
Core.IsNull(IReadOnlyProperty_Base)
Core.KeyedName(IReadOnlyProperty_Base)
Core.Type(IReadOnlyProperty_Base)
ItemExtensions.AsClrValue(IReadOnlyProperty_Base, Property)
ItemExtensions.ToAml(IAmlNode, AmlWriterSettings)
ItemExtensions.ToAml(IAmlNode, XmlWriter)
ItemExtensions.Element(IReadOnlyElement, String)
ItemExtensions.HasValue(IReadOnlyProperty_Base)
ItemExtensions.Add(IElement, Object[])
ItemExtensions.ToXml(IAmlNode)
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