Language

WellKnownResources クラス

定義

ResourceLockAttributeで使用する、共通のプロセス グローバル状態の既知のリソース キー。 これらはプレーンな文字列定数です。ユーザーが発明したキーとまったく同じ等価ベースの競合メカニズムを使用し、同じアンビエント状態で競合するテストがスペルに一致するようにのみ提供されます。

[System.Runtime.CompilerServices.Nullable(0)]
public static class WellKnownResources
public static class WellKnownResources
[<System.Runtime.CompilerServices.Nullable(0)>]
type WellKnownResources = class
type WellKnownResources = class
Public Class WellKnownResources
継承
WellKnownResources
属性

フィールド

名前 説明
Console

プロセス全体のコンソール (ストリーム、エンコード、色、カーソルConsole ) を表すキー。

CurrentDirectory

プロセス全体の現在の作業ディレクトリ (GetCurrentDirectory() / CurrentDirectory) を表すキー。

EnvironmentVariables

プロセス全体の環境変数 (GetEnvironmentVariable(String) / SetEnvironmentVariable(String, String)) を表すキー。 この粗いキーは、子プロセスによって継承される PATHなど、バインドできないブラスト半径を持つ変数に使用します。

適用対象