IWMPPlaylist.attributeName (VB 和 C#)
attributeName 属性 (C# ) 中的 get_attributeName 方法获取索引指定的播放列表属性的名称。
[Visual Basic]
ReadOnly Property attributeName(
lIndex As System.Int32
) As System.String
[C#]
System.String get_attributeName(
System.Int32 lIndex
);
参数
lIndex
一个 System.Int32,它是播放列表属性的索引。
返回值
一个 System.String ,它是播放列表属性的名称。
注解
IWMPPlaylist.attributeName 是Visual Basic中采用参数的只读属性,而在 C# 中,该属性称为IWMPPlaylist.get_attributeName方法。
IWMPPlaylist.attributeCount 属性返回与播放列表关联的属性数。
此属性返回的名称可以提供给 setItemInfo 或 getItemInfo 方法,以指定或检索命名属性的值。
使用此属性之前,必须具有对库的读取访问权限。 有关详细信息,请参阅 库访问。
有关Windows 媒体播放器支持的属性的详细信息,请参阅属性参考。
示例
有关使用此属性的示例代码,请参阅 attributeCount 属性。
要求
要求 | 值 |
---|---|
版本 |
Windows 媒体播放器 9 系列或更高版本 |
命名空间 |
WMPLib |
Assembly |
|