DirectoryAttribute.Item[Int32] Propriedade

Definição

A propriedade Item[Int32] obtém ou define o objeto DirectoryAttribute no índice especificado.The Item[Int32] property gets or sets the DirectoryAttribute object at the specified index.

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

Parâmetros

index
Int32

O valor de índice baseado em zero no qual o objeto DirectoryAttribute é encontrado.The zero-based index value at which the DirectoryAttribute object is found.

Valor da propriedade

Object

O objeto DirectoryAttribute no índice especificado.The DirectoryAttribute object at the specified index.

Exceções

O value a ser definido é um tipo inválido.value to set is an invalid type. Os tipos válidos são byte[], cadeia de caracteres ou URI.The valid types are byte[], string, or URI.

value contém uma referência nula (Nothing no Visual Basic).value contains a null reference (Nothing in Visual Basic).

Comentários

O método Get de Item[] sempre tenta converter e retornar o objeto value como uma cadeia de caracteres; caso contrário, ele retorna uma matriz de bytes.The Get method of Item[] always attempts to convert and return the value object as a string; otherwise it returns a byte array. Para obter um melhor desempenho, use o GetValues método se você souber o tipo de retorno do valor do atributo.To get a better performance, use the GetValues method if you know the return type of the attribute value.

Aplica-se a