Show / Hide Table of Contents

Interface IProperty_Base

Base mutable property interface used to indicate elements which are properties

Inherited Members
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_Base : IElement, IReadOnlyProperty_Base, IReadOnlyElement, IAmlNode

Methods

| Improve this Doc View Source

Set(Object)

Set the value of the property

Declaration
void Set(object value)
Parameters
Type Name Description
System.Object value

Value to set the property to

Remarks

If the property does not exist (Exists = false), but it's parent does exist, the property is added to it's parent

Examples
// If the part was created after 2016-01-01, put the name of the creator in the description
if (comp.CreatedOn().AsDateTime(DateTime.MaxValue) > new DateTime(2016, 1, 1))
{
    edits.Property("description").Set("Created by: " + comp.CreatedById().KeyedName().Value);
}

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