NewEventLogCommand.MessageResourceFile Property

Gets and sets the value of the MessageResourceFile parameter of the New-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 NewEventLogCommand
Dim value As String

value = instance.MessageResourceFile

instance.MessageResourceFile = value

Syntax

'Declaration
<AliasAttribute(System.String[])> _
<ValidateNotNullOrEmptyAttribute> _
<ParameterAttribute> _
Public Property MessageResourceFile As String
[AliasAttribute(System.String[])] 
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute] 
public string MessageResourceFile { get; set; }
[AliasAttribute(System.String[])] 
[ValidateNotNullOrEmptyAttribute] 
[ParameterAttribute] 
public:
property String^ MessageResourceFile {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_MessageResourceFile ()

/** @property */
public void set_MessageResourceFile (String value)
public function get MessageResourceFile () : String

public function set MessageResourceFile (value : String)

Property Value

A String object that contains the path to the file that contains message formatting strings for the source events. This file is also known as the Event Message File.

Remarks

This topic is included in this SDK for completeness only. For more information about this cmdlet, see New-EventLog in the Microsoft TechNet library.

For Help at the command line, type:

get-help new-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

NewEventLogCommand Class
NewEventLogCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK