EventLogInformation.Attributes Właściwość
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera atrybuty pliku dziennika skojarzonego z dziennikiem.
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)
Wartość właściwości
Zwraca wartość całkowitą. Ta wartość może być równa null.
Uwagi
Wartości tej właściwości są takie same jak te typu FileAttributes . Aby ułatwić pracę z tą właściwością, możesz przekonwertować wartość na ten typ przy użyciu następującego kodu:
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?)
Dotyczy
Zobacz też
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.