DynamicElement Members

Represents a dynamic interface to an XElement. This provides simplified access to XML Documents using c# 4.0 by using dynamic keywords and easier access when using XPath.This element is introduced in Windows PowerShell 5.0.

The following tables list the members exposed by the DynamicElement type.

Public Constructors

  Name Description
  DynamicElement Overloaded. This element is introduced in Windows PowerShell 5.0.

Top

Protected Fields

  Name Description
protected field _attributes The object representing the XML attributes for the node. Only created on-demand.This element is introduced in Windows PowerShell 5.0.
protected field _element The XML node this object is representing.This element is introduced in Windows PowerShell 5.0.
protected field _xmlns This element is introduced in Windows PowerShell 5.0.

Top

Public Properties

  Name Description
public property Attributes This element is introduced in Windows PowerShell 5.0.
public property Count Returns the number of descendent nodesThis element is introduced in Windows PowerShell 5.0.
public property Element Returns the actual XElement nodeThis element is introduced in Windows PowerShell 5.0.
public property Item Provides an indexer for the decendent child nodes.This element is introduced in Windows PowerShell 5.0.
public property LocalName This element is introduced in Windows PowerShell 5.0.

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Add Overloaded. This element is introduced in Windows PowerShell 5.0.
public method Equals  (Inherited from Object)
public method GetDynamicMemberNames  (Inherited from DynamicObject)
public method GetEnumerator This element is introduced in Windows PowerShell 5.0.
public method GetHashCode  (Inherited from Object)
public method GetMetaObject  (Inherited from DynamicObject)
public method GetType  (Inherited from Object)
public method Has This element is introduced in Windows PowerShell 5.0.
public method Save This element is introduced in Windows PowerShell 5.0.
public method ToString Overridden. Returns the XML text for the node.This element is introduced in Windows PowerShell 5.0.
public method TryBinaryOperation  (Inherited from DynamicObject)
public method TryConvert Overridden. This element is introduced in Windows PowerShell 5.0.
public method TryCreateInstance  (Inherited from DynamicObject)
public method TryDeleteIndex  (Inherited from DynamicObject)
public method TryDeleteMember  (Inherited from DynamicObject)
public method TryGetIndex  (Inherited from DynamicObject)
public method TryGetMember Overridden. Provides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property. Provides a special case for XML Attributes. If the Member name requested is "Attributes", this will return an DynamicXmlAttributes objectThis element is introduced in Windows PowerShell 5.0.
public method TryInvoke  (Inherited from DynamicObject)
public method TryInvokeMember Overridden. Passes thru function calls to the XElement node when there is no matching function in this class.This element is introduced in Windows PowerShell 5.0.
public method TrySetIndex  (Inherited from DynamicObject)
public method TrySetMember Overridden. Provides the implementation for operations that set member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as setting a value for a property.This element is introduced in Windows PowerShell 5.0.
public method TryUnaryOperation  (Inherited from DynamicObject)
public method XPath Overloaded. This element is introduced in Windows PowerShell 5.0.

Top

Protected Methods

(see also Extension Methods)

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Top

Extension Methods

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ByRef  Overloaded. (Defined by CollectionExtensions.)
public extension method ByRefEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method Concat  Overloaded. (Defined by CollectionExtensions.)
public extension method ConcatSingleItem  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Find  (Defined by Utilities.)
public extension method GetAttribute  Gets the first non-null or non-empty value for a specified attribute in a specified collection of elements.This element is introduced in Windows PowerShell 5.0. (Defined by XmlExtensions.)
public extension method GetAttributes  Returns the values of the specified attribute in each element in the collection. Does not return NULL or empty values.This element is introduced in Windows PowerShell 5.0. (Defined by XmlExtensions.)
public extension method IsNullOrEmpty  Whether the collection object is null or an empty collection.This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method MyMax  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method SafeAggregate  This element is introduced in Windows PowerShell 5.0. (Defined by StringExtensions.)
public extension method ToCacheEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CachingEnumerableExtensions.)
public extension method ToDictionaryNicely  This element is introduced in Windows PowerShell 5.0. (Defined by DictionaryExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
public extension method WhereNotNull  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)

Top

Explicit Interface Implementations

  Name Description
  GetEnumerator This element is introduced in Windows PowerShell 5.0.

Top

See Also

Reference

DynamicElement Class
Microsoft.OneGet.Utility.Xml Namespace