<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>PowerShell7</anon>
  </categories>
  <description>PowerShellでは文字列・整数と列挙型の型変換が実装されています。文字列から列挙型への型変換を使用するとSystem.Environment.GetFolderPath()を呼び出す際に後方互換性を持たせて短く書けます。 [System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::Desktop) [System.Environment]::GetFolderPath(&quot;desktop&quot;) [System.Environment]::GetFolderPath(0) 背景には型変換における列挙型の特別扱い…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2026%2F07%2F26%2F202909&quot; title=&quot;PowerShell7 文字列・整数と列挙型の型変換 - potisanのプログラミングメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-07-26 20:29:09</published>
  <title>PowerShell7 文字列・整数と列挙型の型変換</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2026/07/26/202909</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
