ClearEventLogCommand.LogName Property

Gets and sets the value of the LogName parameter of the Clear-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 ClearEventLogCommand
Dim value As String()

value = instance.LogName

instance.LogName = value

Syntax

'Declaration
<ParameterAttribute(Position:=0, Mandatory:=True, ValueFromPipelineByPropertyName:=True)> _
<AliasAttribute(System.String[])> _
<ValidateNotNullOrEmptyAttribute> _
Public Property LogName As String()
[ParameterAttribute(Position=0, Mandatory=true, ValueFromPipelineByPropertyName=true)] 
[AliasAttribute(System.String[])] 
[ValidateNotNullOrEmptyAttribute] 
public string[] LogName { get; set; }
[ParameterAttribute(Position=0, Mandatory=true, ValueFromPipelineByPropertyName=true)] 
[AliasAttribute(System.String[])] 
[ValidateNotNullOrEmptyAttribute] 
public:
property array<String^>^ LogName {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
/** @property */
public String[] get_LogName ()

/** @property */
public void set_LogName (String[] value)
public function get LogName () : String[]

public function set LogName (value : String[])

Property Value

A String array that contains the names of the event logs to be cleared.

Remarks

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

For Help at the command line, type:

get-help clear-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

ClearEventLogCommand Class
ClearEventLogCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK