~/talk

Improving Your Attributes

slides:none on file

Dives into concrete parameter attributes: ValidateSet, ValidateRange, ValidateScript and regex examples that short‑circuit bad input, plus help and pipeline‑accepting flags. Demonstrates dynamic argument completers implemented as scriptblocks (parameters: commandName parameterName wordToComplete fakeBoundParameters), notes they run on every Tab, and shows using CompletionResult tooltips and Azure completers with caching. Shows writing class‑based argument transformation attributes that map usernames to GUIDs and shipping them in compiled modules; demos mostly work though some live calls fail.

AI-written summary · about

  1. 0:00Introduction
  2. 1:51PowerShell attributes matter
  3. 5:24Parameter attributes uses
  4. 7:13Validation attributes
  5. 14:19Help for parameters
  6. 17:08Dynamic argument completers
  7. 26:38Custom transformation attributes
  8. 32:40Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.