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 | |
---|---|---|
_attributes | The object representing the XML attributes for the node. Only created on-demand.This element is introduced in Windows PowerShell 5.0. | |
_element | The XML node this object is representing.This element is introduced in Windows PowerShell 5.0. | |
_xmlns | This element is introduced in Windows PowerShell 5.0. |
Top
Public Properties
Name | Description | |
---|---|---|
Attributes | This element is introduced in Windows PowerShell 5.0. | |
Count | Returns the number of descendent nodesThis element is introduced in Windows PowerShell 5.0. | |
Element | Returns the actual XElement nodeThis element is introduced in Windows PowerShell 5.0. | |
Item | Provides an indexer for the decendent child nodes.This element is introduced in Windows PowerShell 5.0. | |
LocalName | This element is introduced in Windows PowerShell 5.0. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
Add | Overloaded. This element is introduced in Windows PowerShell 5.0. | |
Equals | (Inherited from Object) | |
GetDynamicMemberNames | (Inherited from DynamicObject) | |
GetEnumerator | This element is introduced in Windows PowerShell 5.0. | |
GetHashCode | (Inherited from Object) | |
GetMetaObject | (Inherited from DynamicObject) | |
GetType | (Inherited from Object) | |
Has | This element is introduced in Windows PowerShell 5.0. | |
Save | This element is introduced in Windows PowerShell 5.0. | |
ToString | Overridden. Returns the XML text for the node.This element is introduced in Windows PowerShell 5.0. | |
TryBinaryOperation | (Inherited from DynamicObject) | |
TryConvert | Overridden. This element is introduced in Windows PowerShell 5.0. | |
TryCreateInstance | (Inherited from DynamicObject) | |
TryDeleteIndex | (Inherited from DynamicObject) | |
TryDeleteMember | (Inherited from DynamicObject) | |
TryGetIndex | (Inherited from DynamicObject) | |
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. | |
TryInvoke | (Inherited from DynamicObject) | |
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. | |
TrySetIndex | (Inherited from DynamicObject) | |
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. | |
TryUnaryOperation | (Inherited from DynamicObject) | |
XPath | Overloaded. This element is introduced in Windows PowerShell 5.0. |
Top
Protected Methods
(see also Extension Methods)
Name | Description | |
---|---|---|
Finalize | (Inherited from Object) | |
MemberwiseClone | (Inherited from Object) |
Top
Extension Methods
Name | Description | |
---|---|---|
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.) | |
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.) | |
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.) | |
ByRef | Overloaded. (Defined by CollectionExtensions.) | |
ByRefEnumerable | This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.) | |
Concat | Overloaded. (Defined by CollectionExtensions.) | |
ConcatSingleItem | This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.) | |
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.) | |
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.) | |
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.) | |
Find | (Defined by Utilities.) | |
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.) | |
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.) | |
IsNullOrEmpty | Whether the collection object is null or an empty collection.This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.) | |
MyMax | This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.) | |
SafeAggregate | This element is introduced in Windows PowerShell 5.0. (Defined by StringExtensions.) | |
ToCacheEnumerable | This element is introduced in Windows PowerShell 5.0. (Defined by CachingEnumerableExtensions.) | |
ToDictionaryNicely | This element is introduced in Windows PowerShell 5.0. (Defined by DictionaryExtensions.) | |
ToEnumerable | This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.) | |
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