GetEventLogCommand.EntryType Property
Gets and sets the value of the EntryType parameter of the Get-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 GetEventLogCommand
Dim value As String()
value = instance.EntryType
instance.EntryType = value
Syntax
'Declaration
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(ParameterSetName:="LogName")> _
<AliasAttribute(System.String[])> _
<ValidateSetAttribute(System.String[])> _
Public Property EntryType As String()
[ValidateNotNullOrEmptyAttribute]
[ParameterAttribute(ParameterSetName="LogName")]
[AliasAttribute(System.String[])]
[ValidateSetAttribute(System.String[])]
public string[] EntryType { get; set; }
[ValidateNotNullOrEmptyAttribute]
[ParameterAttribute(ParameterSetName=L"LogName")]
[AliasAttribute(System.String[])]
[ValidateSetAttribute(System.String[])]
public:
property array<String^>^ EntryType {
array<String^>^ get ();
void set (array<String^>^ value);
}
/** @property */
public String[] get_EntryType ()
/** @property */
public void set_EntryType (String[] value)
public function get EntryType () : String[]
public function set EntryType (value : String[])
Property Value
A String array that contain entry types of the events to be retrieved. Valid values are Error, Information, FailureAudit, SuccessAudit, and Warning. By default, all events of the event log are retrieved.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Get-EventLog in the Microsoft TechNet library.
For Help at the command line, type:
get-help get-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
GetEventLogCommand Class
GetEventLogCommand Members
Microsoft.PowerShell.Commands Namespace