LimitEventLogCommand.MaximumSize Property
Gets and sets the value of the MaximumSize 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 Long
value = instance.MaximumSize
instance.MaximumSize = value
Syntax
'Declaration
<ParameterAttribute> _
<ValidateNotNullOrEmptyAttribute> _
Public Property MaximumSize As Long
[ParameterAttribute]
[ValidateNotNullOrEmptyAttribute]
public long MaximumSize { get; set; }
[ParameterAttribute]
[ValidateNotNullOrEmptyAttribute]
public:
property long long MaximumSize {
long long get ();
void set (long long value);
}
/** @property */
public long get_MaximumSize ()
/** @property */
public void set_MaximumSize (long value)
public function get MaximumSize () : long
public function set MaximumSize (value : long)
Property Value
An Int64 value that represents the maximum size of the event logs in bytes. Enter a value between 64 kilobytes (KB) and 4 gigabytes (GB). The value must be divisible by 64 KB (65536).
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