Skip to Content
PowerShell 烹饪书,第 4 版
book

PowerShell 烹饪书,第 4 版

by Lee Holmes
May 2025
Intermediate to advanced
1002 pages
12h 51m
Chinese
O'Reilly Media, Inc.
Content preview from PowerShell 烹饪书,第 4 版

附录 I. 部分事件及其用途

PowerShell 的事件 命令可让您访问来自 .NET Framework 的事件,以及 Windows Management Instrumentation (WMI) 显示的事件。表 I-1列出了部分 .NET 事件。表 I-2列出了部分 WMI 事件。

表 I-1. 选定的 .NET 事件
类型 活动 说明

System.AppDomain

AssemblyLoad

加载程序集时出现。

System.AppDomain

TypeResolve

当类型解析失败时出现。

System.AppDomain

ResourceResolve

由于资源不是程序集中的有效链接或嵌入资源,导致资源解析失败时出现。

System.AppDomain

AssemblyResolve

当大会决议失败时出现。

System.AppDomain

ReflectionOnlyAssembly​Re⁠solve

当在纯反射上下文中解析程序集失败时出现。

System.AppDomain

UnhandledException

当异常未被捕获时出现。

System.Console

CancelKeyPress

当同时按下 Control 修改器键 (Ctrl) 和 C 控制台键 (C) 时(Ctrl+C)会出现这种情况。

Microsoft.Win32.SystemEvents

DisplaySettingsChanging

显示设置更改时出现。

Microsoft.Win32.SystemEvents

DisplaySettingsChanged

用户更改显示设置时出现。

Microsoft.Win32.SystemEvents

InstalledFontsChanged

用户在系统中添加或删除字体时出现。

Microsoft.Win32.SystemEvents

LowMemory

当系统可用内存即将耗尽时出现。

Microsoft.Win32.SystemEvents

PaletteChanged

当用户切换到使用不同调色板的应用程序时出现。

Microsoft.Win32.SystemEvents

PowerModeChanged

用户暂停或恢复系统时发生。

Microsoft.Win32.SystemEvents

SessionEnded

当用户注销或关闭系统时出现。

Microsoft.Win32.SystemEvents

SessionEnding

当用户试图注销或关闭系统时出现。

Microsoft.Win32.SystemEvents

SessionSwitch

当当前登录的用户发生变化时出现。

Microsoft.Win32.SystemEvents

TimeChanged

当用户更改系统时钟上的时间时发生。

Microsoft.Win32.SystemEvents

UserPreferenceChanged

当用户偏好发生变化时出现。

Microsoft.Win32.SystemEvents

UserPreferenceChanging

用户偏好更改时出现。

System.Net.WebClient

OpenReadCompleted

当打开包含资源的流的异步操作完成时发生。

System.Net.WebClient

OpenWriteCompleted

当打开数据流向资源写入数据的异步操作完成时发生。

System.Net.WebClient ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

《SQL 概论》,第 4 版

《SQL 概论》,第 4 版

Kevin Kline, Regina O. Obe, Leo S. Hsu
《MySQL 烹饪书》第 4 版

《MySQL 烹饪书》第 4 版

Sveta Smirnova, Alkin Tezuysal

Publisher Resources

ISBN: 9798341657984