EventLogConfiguration Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new EventLogConfiguration object.
Overloads
EventLogConfiguration(String) |
Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings. |
EventLogConfiguration(String, EventLogSession) |
Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. The log can be on the local computer or a remote computer, based on the event log session specified. |
EventLogConfiguration(String)
- Source:
- EventLogConfiguration.cs
- Source:
- EventLogConfiguration.cs
- Source:
- EventLogConfiguration.cs
- Source:
- EventLogConfiguration.cs
Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings.
public:
EventLogConfiguration(System::String ^ logName);
public EventLogConfiguration (string logName);
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
Public Sub New (logName As String)
Parameters
- logName
- String
The name of the local event log for which to get information and configuration settings.
See also
Applies to
EventLogConfiguration(String, EventLogSession)
- Source:
- EventLogConfiguration.cs
- Source:
- EventLogConfiguration.cs
- Source:
- EventLogConfiguration.cs
- Source:
- EventLogConfiguration.cs
Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. The log can be on the local computer or a remote computer, based on the event log session specified.
public:
EventLogConfiguration(System::String ^ logName, System::Diagnostics::Eventing::Reader::EventLogSession ^ session);
public EventLogConfiguration (string logName, System.Diagnostics.Eventing.Reader.EventLogSession session);
[System.Security.SecurityCritical]
public EventLogConfiguration (string logName, System.Diagnostics.Eventing.Reader.EventLogSession session);
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string * System.Diagnostics.Eventing.Reader.EventLogSession -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
[<System.Security.SecurityCritical>]
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string * System.Diagnostics.Eventing.Reader.EventLogSession -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
Public Sub New (logName As String, session As EventLogSession)
Parameters
- logName
- String
The name of the event log for which to get information and configuration settings.
- session
- EventLogSession
The event log session used to determine the event log service that the specified log belongs to. The session is either connected to the event log service on the local computer or a remote computer.
- Attributes
See also
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기