RemoveEventLogCommand.LogName Property
Gets and sets the value of the LogName parameter for the Remove-EventLog cmdlet
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)
Usage
'Usage
Dim instance As RemoveEventLogCommand
Dim value As String()
value = instance.LogName
instance.LogName = value
Syntax
'Declaration
<ValidateNotNullAttribute> _
<AliasAttribute(System.String[])> _
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute(Mandatory:=True, Position:=0, ParameterSetName:="Default")> _
Public Property LogName As String()
[ValidateNotNullAttribute]
[AliasAttribute(System.String[])]
[ValidateNotNullOrEmptyAttribute]
[ParameterAttribute(Mandatory=true, Position=0, ParameterSetName="Default")]
public string[] LogName { get; set; }
[ValidateNotNullAttribute]
[AliasAttribute(System.String[])]
[ValidateNotNullOrEmptyAttribute]
[ParameterAttribute(Mandatory=true, Position=0, ParameterSetName=L"Default")]
public:
property array<String^>^ LogName {
array<String^>^ get ();
void set (array<String^>^ value);
}
/** @property */
public String[] get_LogName ()
/** @property */
public void set_LogName (String[] value)
public function get LogName () : String[]
public function set LogName (value : String[])
Property Value
An array of String values that contains the name of the event logs to be removed.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Remove-EventLog in the Microsoft TechNet library.
For Help at the command line, type:
get-help remove-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
RemoveEventLogCommand Class
RemoveEventLogCommand Members
Microsoft.PowerShell.Commands Namespace