Share via


LimitEventLogCommand.LogName Property

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

value = instance.LogName

instance.LogName = value

Syntax

'Declaration
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(Position:=0, Mandatory:=True)> _
<AliasAttribute(System.String[])> _
Public Property LogName As String()
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(Position=0, Mandatory=true)] 
[AliasAttribute(System.String[])] 
public string[] LogName { get; set; }
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute(Position=0, Mandatory=true)] 
[AliasAttribute(System.String[])] 
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

An array of String values that contain the names of the event logs to be set.

Remarks

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

For Help at the command line, type:

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

LimitEventLogCommand Class
LimitEventLogCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK