DynamicAttributes.Item Property

Returns the value of the specified attribute. This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.OneGet.Utility.Xml
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)


Dim instance As DynamicAttributes
Dim attributeName As String
Dim value As String

value = instance(attributeName)

instance(attributeName) = value


Public Default Property Item ( _
    attributeName As String _
) As String
public string this [
    string attributeName
] { get; set; }
property String^ default [String^] {
    String^ get (String^ attributeName);
    void set (String^ attributeName, String^ value);
/** @property */
public String get_Item (String attributeName)

/** @property */
public void set_Item (String attributeName, String value)


  • attributeName
    The name of the attribute.

Property Value

Returns the string value of the attribute if it exists; otherwise returns NULL.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

See Also


DynamicAttributes Class
DynamicAttributes Members
Microsoft.OneGet.Utility.Xml Namespace