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 の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示