Compartilhar via


EventLogInformation.Attributes Propriedade

Definição

Obtém os atributos de arquivo do arquivo de log associados ao log.

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 da propriedade

Retorna um valor inteiro. Esse valor pode ser nulo.

Comentários

Os valores dessa propriedade são os mesmos do FileAttributes tipo. Para facilitar o trabalho com essa propriedade, você pode converter o valor nesse 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

Confira também