EventLogSession EventLogSession EventLogSession EventLogSession Constructors

Definition

Overloads

EventLogSession() EventLogSession() EventLogSession()

Initializes a new EventLogSession object, establishes a connection with the local Event Log service.

EventLogSession(String) EventLogSession(String) EventLogSession(String) 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) EventLogSession(String, String, String, SecureString, SessionAuthentication) EventLogSession(String, String, String, SecureString, SessionAuthentication) 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() EventLogSession() EventLogSession()

Initializes a new EventLogSession object, establishes a connection with the local Event Log service.

public:
 EventLogSession();
[System.Security.SecurityCritical]
public EventLogSession ();
Public Sub New ()
See also

EventLogSession(String) EventLogSession(String) EventLogSession(String) 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.

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 String String String

The name of the computer on which to connect to the Event Log service.

See also

EventLogSession(String, String, String, SecureString, SessionAuthentication) EventLogSession(String, String, String, SecureString, SessionAuthentication) EventLogSession(String, String, String, SecureString, SessionAuthentication) 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.

public:
 EventLogSession(System::String ^ server, System::String ^ domain, System::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
Public Sub New (server As String, domain As String, user As String, password As SecureString, logOnType As SessionAuthentication)

Parameters

server
String String String String

The name of the computer on which to connect to the Event Log service.

domain
String String String String

The domain of the specified user.

user
String String String String

The user name used to connect to the remote computer.

password
SecureString SecureString SecureString SecureString

The password used to connect to the remote computer.

logOnType
SessionAuthentication SessionAuthentication SessionAuthentication SessionAuthentication

The type of connection to use for the connection to the remote computer.

See also

Applies to