DirectoryAttribute.Item[Int32] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
该 Item[Int32] 属性获取或设置 DirectoryAttribute 位于指定索引处的对象。
public:
property System::Object ^ default[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
public object this[int index] { get; set; }
member this.Item(int) : obj with get, set
Default Public Property Item(index As Integer) As Object
参数
- index
- Int32
在其中找到对象的从零开始的 DirectoryAttribute 索引值。
属性值
指定 DirectoryAttribute 索引处的对象。
例外
value 要设置的类型无效。 有效类型为 byte[]、字符串或 URI。
value 包含 null 引用(Visual Basic 中的 Nothing)。
注解
Get 方法 Item[] 始终尝试转换并返回值对象作为字符串;否则返回字节数组。 若要获得更好的性能,如果知道属性值的返回类型,请使用 GetValues 该方法。