Share via


GetEventLogCommand.AsBaseObject Property

Gets and sets the value of the AsBaseObject 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 SwitchParameter

value = instance.AsBaseObject

instance.AsBaseObject = value

Syntax

'Declaration
<ParameterAttribute(ParameterSetName:="LogName")> _
Public Property AsBaseObject As SwitchParameter
[ParameterAttribute(ParameterSetName="LogName")] 
public SwitchParameter AsBaseObject { get; set; }
[ParameterAttribute(ParameterSetName=L"LogName")] 
public:
property SwitchParameter AsBaseObject {
    SwitchParameter get ();
    void set (SwitchParameter value);
}
/** @property */
public SwitchParameter get_AsBaseObject ()

/** @property */
public void set_AsBaseObject (SwitchParameter value)
public function get AsBaseObject () : SwitchParameter

public function set AsBaseObject (value : SwitchParameter)

Property Value

When the parameter is specified, the cmdlet returns a EventLogEntry object for each event. Without this parameter, the cmdlet returns a PSObject object with additional EventLogName, Source, and InstanceId properties.

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

Other Resources

Windows PowerShell SDK