Show / Hide Table of Contents

Class Item

Represents an XML Item element in an AML structure.

Inheritance
System.Object
Element
Item
Access
Action
Activity
ActivityAssignment
ActivityEMail
ActivityMethod
ActivityTask
ActivityTaskValue
ActivityTemplate
ActivityTemplateAssignment
ActivityTemplateEMail
ActivityTemplateMethod
ActivityTemplateTask
ActivityTemplateTransition
ActivityTemplateVariable
ActivityTransition
ActivityVariable
ActivityVariableValue
Alias
AllowedPermission
AllowedWorkflow
AppliedUpdates
Board
Body
BusinessCalendarException
BusinessCalendarYear
CanAdd
Chart
ChartSeries
ClientEvent
cmf_AdditionalPropertyType
cmf_BaseView
cmf_ComputedProperty
cmf_ComputedPropertyDependency
cmf_ContentElementItems
cmf_ContentItems
cmf_ContentPropertyItems
cmf_ContentType
cmf_ContentTypeExportRel
cmf_ContentTypeExportSetting
cmf_ContentTypeExportToExcel
cmf_ContentTypeGridLayout
cmf_ContentTypeView
cmf_DocumentLifeCycleState
cmf_ElementAllowedPermission
cmf_ElementBinding
cmf_ElementType
cmf_ExportToExcelViewConfig
cmf_PropertyAllowedPermission
cmf_PropertyBinding
cmf_PropertyType
cmf_Style
cmf_TabularView
cmf_TabularViewColumn
cmf_TabularViewColumnGroups
cmf_TabularViewHeaderRow
cmf_TabularViewHeaderRows
cmf_TabularViewTree
ColumnEvent
CommandBarButton
CommandBarCheckbox
CommandBarDropDown
CommandBarItem
CommandBarMenu
CommandBarMenuButton
CommandBarMenuCheckbox
CommandBarSection
CommandBarSectionItem
CommandBarSeparator
ConfigurableGridEvent
ConversionRule
ConversionRuleEventHandler
ConversionRuleEventTemplate
ConversionRuleFileType
ConversionServer
ConversionServerConverterType
ConversionServerPriority
ConversionTask
ConversionTaskDependency
ConversionTaskEventHandler
ConversionTaskHandlerError
ConversionTaskResult
ConverterType
Core_GlobalLayout
Core_ItemGridLayout
Core_RelGridLayout
Dashboard
DashboardChart
DatabaseUpgrade
DatabaseUpgradeLogFile
DatabaseUpgradePatch
Desktop
Discussion
DiscussionDefinition
DiscussionDefinitionView
DiscussionTemplate
DiscussionTemplateView
EMailMessage
Exclusion
FeatureLicense
Feed
FeedTemplate
Field
FieldEvent
File
FileContainerItems
FileContainerLocator
FileExchangePackage
FileExchangePackageFile
FileExchangeTxn
FileExchangeTxnState
FileGroup
FileGroupFile
FileSelector
FileSelectorTemplate
FileType
FilterValue
Form
FormEvent
Forum
ForumItem
ForumMessageGroup
ForumMustViewBy
ForumSearch
ForumSharedWith
ForumWantViewBy
Frame
Frameset
GlobalPresentationConfig
Grid
GridColumn
GridEvent
Help
HelpSeeAlso
HideIn
HideRelatedIn
History
HistoryAction
HistoryContainer
HistorySecureMessage
HistoryTemplate
HistoryTemplateAction
HistoryTemplateWhereUsed
Identity
Implements
InBasketTask
InheritedServerEvents
ItemAction
ItemReport
ItemType
ItemTypeLifeCycle
ITPresentationConfiguration
Language
LifeCycleMap
LifeCycleState
LifeCycleTransition
List
Locale
Located
LockedItems
Member
Message
MessageAcknowledgement
Method
Metric
MetricValue
Morphae
MyReports
OldPassword
PackageDefinition
PackageDependsOn
PackageElement
PackageGroup
PackageReferencedElement
Permission
Preference
PreferenceTabTypes
PreferenceTypes
PresentationCommandBarSection
PresentationConfiguration
Property
ReadPriority
RelationshipGridEvent
RelationshipType
RelationshipView
ReplicationRule
ReplicationRuleFileType
ReplicationRuleTargetVault
ReplicationTxn
ReplicationTxnLog
Report
Revision
RunReportByUser
SavedSearch
ScheduledTask
Search
SearchCenter
SearchCriteria
SearchMode
SecureMessage
SecureMessageAudio
SecureMessageFlaggedBy
SecureMessageMarkup
SecureMessageVideo
SecureMessageViewTemplate
SelfServiceReport
SelfServiceReportFeatured
SelfServiceReportHelp
SelfServiceReportSettings
SelfServiceReportSharedWith
Sequence
ServerEvent
ServiceProvider
SPDocumentLibraryDefinition
SPField
SQL
SQLDependencies
SSVC_Preferences
SSVCItems
SSVCPresentationConfiguration
StateDistribution
StateEMail
StateNotification
StoredSecureMessage
SystemEvent
SystemEventHandler
SystemEventLog
SystemEventLogDescriptor
SystemFileContainer
Team
TeamIdentity
TimetoManufacturing
TOCAccess
TOCView
tp_Block
tp_BlockReference
tp_Image
tp_ImageReference
tp_Item
tp_ItemReference
tp_LinkReference
tp_Stylesheet
tp_XmlSchema
tp_XmlSchemaElement
tp_XmlSchemaOutputSetting
TransitionDistribution
TransitionEMail
User
UserMessage
Value
Variable
Vault
View
Viewer
ViewWith
Workflow
WorkflowMap
WorkflowMapActivity
WorkflowMapPath
WorkflowMapPathPost
WorkflowMapPathPre
WorkflowMapVariable
WorkflowProcess
WorkflowProcessActivity
WorkflowProcessPath
WorkflowProcessPathPost
WorkflowProcessPathPre
WorkflowProcessVariable
WorkflowTask
WSConfiguration
WSType
WSTypeAction
WSTypeAssociate
WSTypeProperty
Inherited Members
Element._attr
Element._content
Element.IReadOnlyElement.Parent
Element.ILinkedElement.Parent
Element.Value
Element.ReadOnly
Element.Clone(IElement)
Element.CopyData(IReadOnlyElement)
Element.Add(Object)
Element.Attribute(String)
Element.Attributes()
Element.Remove()
Element.RemoveAttributes()
Element.RemoveNodes()
Element.ToAml(XmlWriter, AmlWriterSettings)
Element.IReadOnlyElement.Attribute(String)
Element.IReadOnlyElement.Attributes()
Element.IReadOnlyElement.Elements()
Element.ToString()
Element.AssertModifiable()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public class Item : Element, ILinkedElement, ILink<ILinkedElement>, IItem, IElement, IReadOnlyItem, IReadOnlyElement, IAmlNode, IItemRef, IEquatable<IItemRef>

Constructors

| Improve this Doc View Source

Item()

Initializes a new instance of the Item class.

Declaration
protected Item()
| Improve this Doc View Source

Item(ElementFactory, Object[])

Initializes a new instance of the Item class.

Declaration
public Item(ElementFactory amlContext, params object[] content)
Parameters
Type Name Description
ElementFactory amlContext

The aml context.

System.Object[] content

The content.

Properties

| Improve this Doc View Source

AmlContext

Retrieve the context used for rendering primitive values

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

Name

Local XML name of the element

Declaration
public override string Name { get; }
Property Value
Type Description
System.String
Overrides
Element.Name
Implements
IReadOnlyElement.Name
| Improve this Doc View Source

Next

The next sibling AML element (if any)

Declaration
public override ILinkedElement Next { get; set; }
Property Value
Type Description
ILinkedElement
Overrides
Element.Next
| Improve this Doc View Source

Parent

Retrieve the parent element

Declaration
public override IElement Parent { get; set; }
Property Value
Type Description
IElement
Overrides
Element.Parent
Implements
IElement.Parent

Methods

| Improve this Doc View Source

AddNullItem<T>(T)

Add a strongly-typed 'null' model to list of null models by type

Declaration
public static void AddNullItem<T>(T value)where T : IReadOnlyItem
Parameters
Type Name Description
T value

'null' model instance

Type Parameters
Name Description
T

Type of item model

| 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
Implements
IReadOnlyItem.Clone()
| Improve this Doc View Source

Elements()

Retrieve all child elements

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

Equals(IItemRef)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(IItemRef other)
Parameters
Type Name Description
IItemRef other

An object to compare with this object.

Returns
Type Description
System.Boolean

true if the current object is equal to the other parameter; otherwise, false.

Implements
System.IEquatable<T>.Equals(T)
| Improve this Doc View Source

Equals(Object)

Determines whether the specified System.Object, is equal to this instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with this instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns a hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides
System.Object.GetHashCode()
| Improve this Doc View Source

GetNullItem<T>()

Retrieve a strongly-typed 'null' model to the list of null models by type

Declaration
public static T GetNullItem<T>()where T : IReadOnlyItem
Returns
Type Description
T
Type Parameters
Name Description
T

Type of item model

Remarks

If you are looking to create a new item, see Item(Object[]) or FromXml(String, Object[]).

Examples

Say you have a nullable IReadOnlyItem variable and you want to make sure it is never null.

IReadOnlyItem parameter = null;
var item = parameter ?? Item.GetNullItem<IReadOnlyItem>()
| 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 IProperty Property(string name)
Parameters
Type Name Description
System.String name

Name of the property

Returns
Type Description
IProperty
Implements
IItem.Property(String)
Remarks

If the property does not exist, a non-null object will be returned that has an Exists member which will return false

| 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
Implements
IItem.Property(String, String)
Remarks

If the property does not exist, a non-null object will be returned that has an Exists member which will return false

| Improve this Doc View Source

Relationships()

Returns the set of relationships associated with this item

Declaration
public IRelationships Relationships()
Returns
Type Description
IRelationships
Implements
IItem.Relationships()
| 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
IItem.Relationships(String)
| Improve this Doc View Source

TypeName()

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

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

Explicit Interface Implementations

| Improve this Doc View Source

IReadOnlyItem.Property(String)

Declaration
IReadOnlyProperty IReadOnlyItem.Property(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
IReadOnlyProperty
Implements
IReadOnlyItem.Property(String)
| 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
Type Description
IReadOnlyProperty
Implements
IReadOnlyItem.Property(String, String)
| Improve this Doc View Source

IReadOnlyItem.Relationships()

Declaration
IEnumerable<IReadOnlyItem> IReadOnlyItem.Relationships()
Returns
Type Description
System.Collections.Generic.IEnumerable<IReadOnlyItem>
Implements
IReadOnlyItem.Relationships()
| 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
IReadOnlyItem.Relationships(String)

Extension Methods

Core.Action(IItem)
Core.DoGetItem(IItem)
Core.IdList(IItem)
Core.MaxRecords(IItem)
Core.OrderBy(IItem)
Core.Page(IItem)
Core.PageSize(IItem)
Core.QueryDate(IItem)
Core.QueryType(IItem)
Core.RelatedExpand(IItem)
Core.Select(IItem)
Core.ServerEvents(IItem)
Core.Type(IItem)
Core.TypeId(IItem)
Core.Where(IItem)
Core.Classification(IItem)
Core.ConfigId(IItem)
Core.CreatedById(IItem)
Core.CreatedOn(IItem)
Core.Css(IItem)
Core.CurrentState(IItem)
Core.Generation(IItem)
Core.IdProp(IItem)
Core.IsCurrent(IItem)
Core.IsReleased(IItem)
Core.KeyedName(IItem)
Core.LockedById(IItem)
Core.MajorRev(IItem)
Core.ManagedById(IItem)
Core.MinorRev(IItem)
Core.ModifiedById(IItem)
Core.ModifiedOn(IItem)
Core.NewVersion(IItem)
Core.NotLockable(IItem)
Core.OwnedById(IItem)
Core.PermissionId(IItem)
Core.RelatedId(IItem)
Core.RelatedItem(IItem)
Core.State(IItem)
Core.SourceId(IItem)
Core.SourceItem(IItem)
Core.TeamId(IItem)
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.Add(IElement, Object[])
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