EventLogInformation.Attributes Özellik

Tanım

Günlükle ilişkili günlük dosyasının dosya özniteliklerini alır.

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)

Özellik Değeri

Bir tamsayı değeri döndürür. Bu değer null olabilir.

Açıklamalar

Bu özelliğin değerleri, türün değerleriyle FileAttributes aynıdır. Bu özellik ile çalışmayı kolaylaştırmak için aşağıdaki kodu kullanarak değeri bu türe dönüştürebilirsiniz:

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

Şunlara uygulanır

Ayrıca bkz.