{"id":1182,"date":"2014-06-12T11:59:00","date_gmt":"2014-06-12T11:59:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2014\/06\/12\/powertip-find-other-ways-to-use-split-method\/"},"modified":"2014-06-12T11:59:00","modified_gmt":"2014-06-12T11:59:00","slug":"powertip-find-other-ways-to-use-split-method","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/powertip-find-other-ways-to-use-split-method\/","title":{"rendered":"PowerTip: Find Other Ways to Use Split Method"},"content":{"rendered":"<p><b>Summary<\/b>: Find other ways to use the Windows PowerShell&nbsp;<b>Split<\/b>&nbsp;method.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Question\">&nbsp;How can I use Windows PowerShell to find if there are other ways to use the&nbsp;<b>Split<\/b>&nbsp;method from a&nbsp;<b>String<\/b>&nbsp;object?<\/p>\n<p style=\"margin-left:30px\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" alt=\"Hey, Scripting Guy! Answer\">&nbsp;Use the&nbsp;<b>PSMethod<\/b>&nbsp;object that returns from the method when not calling it with parenthesis, <br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and then call the&nbsp;<b>OverLoadDefinitions<\/b>&nbsp;property, for example:<\/p>\n<p style=\"margin-left:120px\">PS C:&gt; &#8220;string&#8221;.split.OverloadDefinitions<\/p>\n<p style=\"margin-left:120px\">string[] Split(Params char[] separator)<\/p>\n<p style=\"margin-left:120px\">string[] Split(char[] separator, int count)<\/p>\n<p style=\"margin-left:120px\">string[] Split(char[] separator, System.StringSplitOptions options)<\/p>\n<p style=\"margin-left:120px\">string[] Split(char[] separator, int count, System.StringSplitOptions options)<\/p>\n<p style=\"margin-left:120px\">string[] Split(string[] separator, System.StringSplitOptions options)<\/p>\n<p style=\"margin-left:120px\">string[] Split(string[] separator, int count, System.StringSplitOptions options)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Summary: Find other ways to use the Windows PowerShell&nbsp;Split&nbsp;method. &nbsp;How can I use Windows PowerShell to find if there are other ways to use the&nbsp;Split&nbsp;method from a&nbsp;String&nbsp;object? &nbsp;Use the&nbsp;PSMethod&nbsp;object that returns from the method when not calling it with parenthesis, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and then call the&nbsp;OverLoadDefinitions&nbsp;property, for example: PS C:&gt; &#8220;string&#8221;.split.OverloadDefinitions string[] [&hellip;]<\/p>\n","protected":false},"author":596,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[356,3,45],"class_list":["post-1182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-powertip","tag-scripting-guy","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>Summary: Find other ways to use the Windows PowerShell&nbsp;Split&nbsp;method. &nbsp;How can I use Windows PowerShell to find if there are other ways to use the&nbsp;Split&nbsp;method from a&nbsp;String&nbsp;object? &nbsp;Use the&nbsp;PSMethod&nbsp;object that returns from the method when not calling it with parenthesis, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and then call the&nbsp;OverLoadDefinitions&nbsp;property, for example: PS C:&gt; &#8220;string&#8221;.split.OverloadDefinitions string[] [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/1182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/596"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=1182"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/1182\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=1182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=1182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=1182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}