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)

Usage

'Usage
Dim instance As DynamicAttributes
Dim attributeName As String
Dim value As String

value = instance(attributeName)

instance(attributeName) = value

Syntax

'Declaration
Public Default Property Item ( _
    attributeName As String _
) As String
public string this [
    string attributeName
] { get; set; }
public:
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)

Parameters

  • 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.

Platforms

Target Platforms

See Also

Reference

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