ShowEventLogCommand.ComputerName Property

Gets and sets the value of the ComputerName parameter of the Show-EventLog cmdlet. This property is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)

Usage

'Usage
Dim instance As ShowEventLogCommand
Dim value As String

value = instance.ComputerName

instance.ComputerName = value

Syntax

'Declaration
<AliasAttribute(System.String[])> _
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(Position:=0)> _
Public Property ComputerName As String
[AliasAttribute(System.String[])] 
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(Position=0)] 
public string ComputerName { get; set; }
[AliasAttribute(System.String[])] 
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(Position=0)] 
public:
property String^ ComputerName {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ComputerName ()

/** @property */
public void set_ComputerName (String value)
public function get ComputerName () : String

public function set ComputerName (value : String)

Property Value

A String object that contains the name of the remote computer whose event log is displayed.

Remarks

This topic is included in this SDK for completeness only. For more information about this cmdlet, see Show-EventLog in the Microsoft TechNet library.

For Help at the command line, type:

get-help show-eventlog

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

ShowEventLogCommand Class
ShowEventLogCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK