Compartir vía


EventLogInformation.Attributes Propiedad

Definición

Obtiene los atributos del archivo de registro asociado al registro.

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 propiedad

Devuelve un valor entero. Este valor puede ser NULL.

Comentarios

Los valores de esta propiedad son los mismos que los del FileAttributes tipo . Para facilitar el trabajo con esta propiedad, puede convertir el valor en ese tipo mediante el código siguiente:

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?)

Se aplica a

Consulte también