Share via


DirectoryAttribute.Item[Int32] プロパティ

定義

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 オブジェクトの 0 から始まるインデックス値。

プロパティ値

指定したインデックス位置にある DirectoryAttribute オブジェクト。

例外

設定した value の型が無効です。 有効な型は、byte[]、string、または URI です。

value に null 参照 (Visual Basic の場合は Nothing) が含まれています。

注釈

Item[] Get メソッドは、常に値オブジェクトを文字列として変換して返そうとします。それ以外の場合はバイト配列を返します。 パフォーマンスを向上させるには、属性値の戻り値の GetValues 型がわかっている場合は、 メソッドを使用します。

適用対象