EventLogInformation.Attributes Propriedade

Definição

Obtém os atributos do ficheiro de registo associados ao registo.

public:
 property Nullable<int> Attributes { Nullable<int> get(); };
public int? Attributes { get; }
member this.Attributes : Nullable<int>
Public ReadOnly Property Attributes As Nullable(Of Integer)

Valor de Propriedade

Retorna um valor inteiro. Esse valor pode ser nulo.

Observações

Os valores desta propriedade são os mesmos do FileAttributes tipo. Para facilitar o trabalho com esta propriedade, pode converter o valor para esse tipo usando o seguinte código:

using System.Diagnostics.Eventing.Reader;
using System.IO;

EventLogInformation eventLogInformation;
FileAttributes? fileAttributes = (FileAttributes?)eventLogInformation.Attributes;
Imports System.Diagnostics.Eventing.Reader
Imports System.IO

Dim eventLogInformation As EventLogInformation
Dim fileAttributes = CType(eventLogInformation.Attributes, FileAttributes?)

Aplica-se a

Ver também