Share via


WriteEventLogCommand.RawData Property

Gets and sets the value of the RawData 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 Byte()

value = instance.RawData

instance.RawData = value

Syntax

'Declaration
<AliasAttribute(System.String[])> _
<ParameterAttribute> _
<ValidateNotNullOrEmptyAttribute> _
Public Property RawData As Byte()
[AliasAttribute(System.String[])] 
[ParameterAttribute] 
[ValidateNotNullOrEmptyAttribute] 
public byte[] RawData { get; set; }
[AliasAttribute(System.String[])] 
[ParameterAttribute] 
[ValidateNotNullOrEmptyAttribute] 
public:
property array<unsigned char>^ RawData {
    array<unsigned char>^ get ();
    void set (array<unsigned char>^ value);
}
/** @property */
public byte[] get_RawData ()

/** @property */
public void set_RawData (byte[] value)
public function get RawData () : byte[]

public function set RawData (value : byte[])

Property Value

An array of Byte values that represent the binary data that is associated with the event.

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

Other Resources

Windows PowerShell SDK