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 メソッドを使用します。

適用対象