EventLogSession 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 EventLogSession object.
Overloads
EventLogSession() |
Initializes a new EventLogSession object, establishes a connection with the local Event Log service. |
EventLogSession(String) |
Initializes a new EventLogSession object, and establishes a connection with the Event Log service on the specified computer. The credentials (user name and password) of the user who calls the method is used for the credentials to access the remote computer. |
EventLogSession(String, String, String, SecureString, SessionAuthentication) |
Initializes a new EventLogSession object, and establishes a connection with the Event Log service on the specified computer. The specified credentials (user name and password) are used for the credentials to access the remote computer. |
EventLogSession()
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
Initializes a new EventLogSession object, establishes a connection with the local Event Log service.
public:
EventLogSession();
public EventLogSession ();
[System.Security.SecurityCritical]
public EventLogSession ();
Public Sub New ()
- Attributes
See also
Applies to
EventLogSession(String)
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
Initializes a new EventLogSession object, and establishes a connection with the Event Log service on the specified computer. The credentials (user name and password) of the user who calls the method is used for the credentials to access the remote computer.
public:
EventLogSession(System::String ^ server);
public EventLogSession (string server);
new System.Diagnostics.Eventing.Reader.EventLogSession : string -> System.Diagnostics.Eventing.Reader.EventLogSession
Public Sub New (server As String)
Parameters
- server
- String
The name of the computer on which to connect to the Event Log service.
See also
Applies to
EventLogSession(String, String, String, SecureString, SessionAuthentication)
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
- Source:
- EventLogSession.cs
Initializes a new EventLogSession object, and establishes a connection with the Event Log service on the specified computer. The specified credentials (user name and password) are used for the credentials to access the remote computer.
public:
EventLogSession(System::String ^ server, System::String ^ domain, System::String ^ user, System::Security::SecureString ^ password, System::Diagnostics::Eventing::Reader::SessionAuthentication logOnType);
public EventLogSession (string server, string domain, string user, System.Security.SecureString password, System.Diagnostics.Eventing.Reader.SessionAuthentication logOnType);
[System.Security.SecurityCritical]
public EventLogSession (string server, string domain, string user, System.Security.SecureString password, System.Diagnostics.Eventing.Reader.SessionAuthentication logOnType);
new System.Diagnostics.Eventing.Reader.EventLogSession : string * string * string * System.Security.SecureString * System.Diagnostics.Eventing.Reader.SessionAuthentication -> System.Diagnostics.Eventing.Reader.EventLogSession
[<System.Security.SecurityCritical>]
new System.Diagnostics.Eventing.Reader.EventLogSession : string * string * string * System.Security.SecureString * System.Diagnostics.Eventing.Reader.SessionAuthentication -> System.Diagnostics.Eventing.Reader.EventLogSession
Public Sub New (server As String, domain As String, user As String, password As SecureString, logOnType As SessionAuthentication)
Parameters
- server
- String
The name of the computer on which to connect to the Event Log service.
- domain
- String
The domain of the specified user.
- user
- String
The user name used to connect to the remote computer.
- password
- SecureString
The password used to connect to the remote computer.
- logOnType
- SessionAuthentication
The type of connection to use for the connection to the remote computer.
- Attributes