共用方式為


PSHost.CurrentCulture Property

Definition

Gets the host's culture: the culture that the runspace should use to set the CurrentCulture on new threads.

public:
 abstract property System::Globalization::CultureInfo ^ CurrentCulture { System::Globalization::CultureInfo ^ get(); };
public abstract System.Globalization.CultureInfo CurrentCulture { get; }
member this.CurrentCulture : System.Globalization.CultureInfo
Public MustOverride ReadOnly Property CurrentCulture As CultureInfo

Property Value

A CultureInfo object representing the host's current culture. Returning null is not allowed.

Remarks

The runspace will set the thread current culture to this value each time it starts a pipeline. Thus, cmdlets are encouraged to use Thread.CurrentThread.CurrentCulture.

Applies to