EventLogInformation.Attributes Propriété

Définition

Obtient les attributs de fichier du fichier journal associé au journal.

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)

Valeur de propriété

Retourne une valeur entière. Cette valeur peut être null.

Remarques

Les valeurs de cette propriété sont identiques à celles du FileAttributes type. Pour faciliter l’utilisation de cette propriété, vous pouvez convertir la valeur en ce type à l’aide du code suivant :

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

S’applique à