Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Sets an environment variable in the process. On non-Windows platforms the runtime keeps an internal cache of environment variables to ensure thread safety. This means that if the profiler calls setenv the new environment variable will not be picked up by managed code running in the process.
Syntax
HRESULT SetEnvironmentVariable(
[in, string] const WCHAR *szName,
[in, string] const WCHAR *szValue);
Parameters
szName
[in] A pointer to a null terminated wide character string containing the name of the environment variable to set.
szValue
[in] A pointer to a null terminated wide character string containing the value of the environment variable to set.
Requirements
Platforms: See .NET supported operating systems.
Header: CorProf.idl, CorProf.h
.NET Versions: Available since .NET Core 3.1