WriteEventLogCommand.EntryType Property
Gets and sets the value of the EntryType parameter of the Write-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 WriteEventLogCommand
Dim value As EventLogEntryType
value = instance.EntryType
instance.EntryType = value
Syntax
'Declaration
<ValidateSetAttribute(System.String[])> _
<AliasAttribute(System.String[])> _
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(Position:=3)> _
Public Property EntryType As EventLogEntryType
[ValidateSetAttribute(System.String[])]
[AliasAttribute(System.String[])]
[ValidateNotNullOrEmptyAttribute]
[ParameterAttribute(Position=3)]
public EventLogEntryType EntryType { get; set; }
[ValidateSetAttribute(System.String[])]
[AliasAttribute(System.String[])]
[ValidateNotNullOrEmptyAttribute]
[ParameterAttribute(Position=3)]
public:
property EventLogEntryType EntryType {
EventLogEntryType get ();
void set (EventLogEntryType value);
}
/** @property */
public EventLogEntryType get_EntryType ()
/** @property */
public void set_EntryType (EventLogEntryType value)
public function get EntryType () : EventLogEntryType
public function set EntryType (value : EventLogEntryType)
Property Value
An EventLogEntryType constant that identifies the type of the event, such as Error, Warning, or Information.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Write-EventLog in the Microsoft TechNet library.
For Help at the command line, type:
get-help write-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
WriteEventLogCommand Class
WriteEventLogCommand Members
Microsoft.PowerShell.Commands Namespace