This topic has not yet been rated - Rate this topic

GetEventLogCommand.Source Property

Gets and sets the value of the Source 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
Dim instance As GetEventLogCommand
Dim value As String()

value = instance.Source

instance.Source = value
[ParameterAttribute(ParameterSetName="LogName")] 
[ValidateNotNullOrEmptyAttribute] 
[AliasAttribute(System.String[])] 
public string[] Source { get; set; }
/** @property */
public String[] get_Source ()

/** @property */
public void set_Source (String[] value)

public function get Source () : String[]

public function set Source (value : String[])

Property Value

A String array that contains the names of the sources who wrote the events to be retrieved.

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


Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.