{"id":2250,"date":"2016-09-10T17:18:44","date_gmt":"2016-09-10T08:18:44","guid":{"rendered":"http:\/\/1bed.allright.life\/?p=2250"},"modified":"2020-04-18T21:15:27","modified_gmt":"2020-04-18T12:15:27","slug":"post-2250","status":"publish","type":"post","link":"https:\/\/1bed.allright.life\/?p=2250","title":{"rendered":"PowerShell \u3067\u6271\u3048\u308b\u5909\u6570\u578b\u5099\u5fd8\u9332"},"content":{"rendered":"<p>.NET Framework \u306e CTS (Common Type System) \u3067\u6271\u3048\u308b\u3068\u4f55\u51e6\u304b\u3067\u307f\u305f(\u30bd\u30fc\u30b9\u5fd8\u308c\u305f)\u306e\u3067\u3001\u307e\u305a\u306f\u305d\u3053\u304b\u3089\u8abf\u3079\u3066\u3044\u305f\u3051\u3069\u3001PowerShell.com \u306b\u5224\u308a\u3084\u3059\u3044\u4e00\u89a7\u8868\u304c\u3042\u3063\u305f\u3002<\/p>\n<p>\u3064\u3044\u3067\u306a\u306e\u3067\u3001\u6700\u5927\u5024\u3068\u6700\u5c0f\u5024\u3082\u8abf\u3079\u3066\u307f\u305f\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>type<\/th>\n<th>FullName<\/th>\n<th>MinValue<\/th>\n<th>MaxValue<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>[array]<\/td>\n<td>System.Array<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[bool]<\/td>\n<td>System.Boolean<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[byte]<\/td>\n<td>System.Byte<\/td>\n<td>0<\/td>\n<td>255<\/td>\n<\/tr>\n<tr>\n<td>[char]<\/td>\n<td>System.Char<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[datetime]<\/td>\n<td>System.DateTime<\/td>\n<td>0001\/01\/01 0:00:00<\/td>\n<td>9999\/12\/31 23:59:59<\/td>\n<\/tr>\n<tr>\n<td>[decimal]<\/td>\n<td>System.Decimal<\/td>\n<td>-79228162514264337593543950335<\/td>\n<td>79228162514264337593543950335<\/td>\n<\/tr>\n<tr>\n<td>[double]<\/td>\n<td>System.Double<\/td>\n<td>-1.79769313486232E+308<\/td>\n<td>1.79769313486232E+308<\/td>\n<\/tr>\n<tr>\n<td>[guid]<\/td>\n<td>System.Guid<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[hashtable]<\/td>\n<td>System.Collections.Hashtable<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[int16]<\/td>\n<td>System.Int16<\/td>\n<td>-32768<\/td>\n<td>32767<\/td>\n<\/tr>\n<tr>\n<td>[int32], [int]<\/td>\n<td>System.Int32<\/td>\n<td>-2147483648<\/td>\n<td>2147483647<\/td>\n<\/tr>\n<tr>\n<td>[int64], [long]<\/td>\n<td>System.Int64<\/td>\n<td>-9223372036854775808<\/td>\n<td>9223372036854775807<\/td>\n<\/tr>\n<tr>\n<td>[nullable]<\/td>\n<td>System.Nullable<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[psobject]<\/td>\n<td>System.Management.Automation.PSObject<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[regex]<\/td>\n<td>System.Text.RegularExpressions.Regex<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[sbyte]<\/td>\n<td>System.SByte<\/td>\n<td>-128<\/td>\n<td>127<\/td>\n<\/tr>\n<tr>\n<td>[scriptblock]<\/td>\n<td>System.Management.Automation.ScriptBlock<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[single], [float]<\/td>\n<td>System.Single<\/td>\n<td>-3.402823E+38<\/td>\n<td>3.402823E+38<\/td>\n<\/tr>\n<tr>\n<td>[string]<\/td>\n<td>System.String<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[switch]<\/td>\n<td>System.Management.Automation.SwitchParameter<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[timespan]<\/td>\n<td>System.TimeSpan<\/td>\n<td>-10675199.02:48:05.4775808<\/td>\n<td>10675199.02:48:05.4775807<\/td>\n<\/tr>\n<tr>\n<td>[type]<\/td>\n<td>System.Type<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>[uint16]<\/td>\n<td>System.UInt16<\/td>\n<td>0<\/td>\n<td>65535<\/td>\n<\/tr>\n<tr>\n<td>[uint32]<\/td>\n<td>System.UInt32<\/td>\n<td>0<\/td>\n<td>4294967295<\/td>\n<\/tr>\n<tr>\n<td>[uint64]<\/td>\n<td>System.UInt64<\/td>\n<td>0<\/td>\n<td>18446744073709551615<\/td>\n<\/tr>\n<tr>\n<td>[xml]<\/td>\n<td>System.Xml.XmlDocument<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u8abf\u67fb\u306e\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/h2>\n<pre><code class=\"language-powershell\">$types = @([array], [bool], [byte], [char], [datetime], [decimal], [double], [guid], [hashtable], [int16], [int32], [int], [int64], [long], [nullable], [psobject], [regex], [sbyte], [scriptblock], [single], [float], [string], [switch], [timespan], [type], [uint16], [uint32], [uint64], [xml])\n\nforeach($type in $types){\n    Write-Output (&quot;| {0} | {1} | {2} | {3} |&quot; -f $type.Name, $type.FullName, $type::MinValue, $type::MaxValue)\n}<\/code><\/pre>\n<h2>\u53c2\u8003<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/system(v=vs.110).aspx#Anchor_1\">System \u540d\u524d\u7a7a\u9593 &#8211; \u69cb\u9020\u4f53<\/a><br \/>\n<a href=\"https:\/\/msdn.microsoft.com\/ja-jp\/library\/system(v=vs.110).aspx#Anchor_1\">https:\/\/msdn.microsoft.com\/ja-jp\/library\/system(v=vs.110).aspx#Anchor_1<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/powershell.com\/cs\/blogs\/ebookv2\/archive\/2012\/02\/02\/chapter-3-variables.aspx#the-advantages-of-specialized-types\">Chapter 3. Variables &#8211; The Advantages of Specialized Types<\/a><br \/>\n<a href=\"http:\/\/powershell.com\/cs\/blogs\/ebookv2\/archive\/2012\/02\/02\/chapter-3-variables.aspx#the-advantages-of-specialized-types\">http:\/\/powershell.com\/cs\/blogs\/ebookv2\/archive\/2012\/02\/02\/chapter-3-variables.aspx#the-advantages-of-specialized-types<\/a><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>.NET Framework \u306e CTS (Common Type System) \u3067\u6271\u3048\u308b\u3068\u4f55\u51e6\u304b\u3067\u307f\u305f(\u30bd\u30fc\u30b9\u5fd8\u308c\u305f)\u306e\u3067\u3001\u307e\u305a\u306f\u305d\u3053\u304b\u3089\u8abf\u3079\u3066\u3044\u305f\u3051\u3069\u3001PowerShell.com \u306b\u5224\u308a\u3084\u3059\u3044\u4e00\u89a7\u8868\u304c\u3042\u3063\u305f\u3002 \u3064 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[62],"class_list":["post-2250","post","type-post","status-publish","format-standard","hentry","category-program","tag-powershell"],"_links":{"self":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2250"}],"version-history":[{"count":6,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2250\/revisions"}],"predecessor-version":[{"id":3146,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=\/wp\/v2\/posts\/2250\/revisions\/3146"}],"wp:attachment":[{"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1bed.allright.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}