다음을 통해 공유


MediaElement.Attributes Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the collection of attributes that corresponds to the current entry in the ASX file that Source is set to.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public ReadOnly Property Attributes As Dictionary(Of String, String)
public Dictionary<string, string> Attributes { get; }

Property Value

Type: System.Collections.Generic.Dictionary<String, String>
The collection of attributes that corresponds to the current entry in the ASX file that Source is set to.

Remarks

JavaScript API Notes

In the JavaScript API, this property returns a dedicated MediaAttributes collection that in turn contains MediaAttribute objects, rather than the dictionary of strings returned by the managed API.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.