WellKnownResources Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Well-known resource keys for common process-global state, for use with ResourceLockAttribute. These are plain string constants: they use the exact same equality-based conflict mechanism as any user-invented key, and are provided only so that tests contending on the same ambient state agree on a spelling.
[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
- Inheritance
-
WellKnownResources
- Attributes
Fields
| Name | Description |
|---|---|
| Console |
A key representing the process-wide console (Console streams, encoding, colors and cursor). |
| CurrentDirectory |
A key representing the process-wide current working directory (GetCurrentDirectory() / CurrentDirectory). |
| EnvironmentVariables |
A key representing process-wide environment variables
(GetEnvironmentVariable(String) /
SetEnvironmentVariable(String, String)). Use this coarse key
for variables whose blast radius you cannot bound, such as |