{"id":1422,"date":"2008-10-04T23:59:00","date_gmt":"2008-10-04T14:59:00","guid":{"rendered":"https:\/\/hdmr.org\/d\/?e=143"},"modified":"2008-10-04T23:59:00","modified_gmt":"2008-10-04T14:59:00","slug":"blogn-143","status":"publish","type":"post","link":"https:\/\/hdmr.org\/d\/?e=143","title":{"rendered":"\u67a0\u3067\u56f2\u3080\u3088\u3046\u306b\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8"},"content":{"rendered":"<p>\u4eca\u65e5\u3001\u3061\u3087\u3063\u3068\u3044\u308d\u3044\u308d\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u305f\u3002<br \/>\u307e\u3041\u305d\u3046\u3044\u3046\u65e5\u3082\u3042\u308a\u307e\u3059\u3088\u306d\u3002<br \/>\u305d\u308c\u306b\u3057\u3066\u3082\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u3063\u3066\u4fbf\u5229\u3067\u3059\u306d\u3002<\/p>\n<pre>((MethodInvoker)delegate() {<br \/>  \/\/\u91cd\u3044\u52d5\u4f5c<br \/>}).BeginInvoke(null,null);<\/pre>\n<p>\u4f8b\u3048\u3070\u30d5\u30a9\u30fc\u30e0\u3067\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u3001\u305d\u308c\u3067\u547c\u3073\u51fa\u3055\u308c\u308b\u30a4\u30d9\u30f3\u30c8\u306b\u91cd\u3044\u52d5\u4f5c\u3092\u66f8\u304f\u3068\u753b\u9762\u304c\u56fa\u307e\u308b\u306e\u3088\u306d\u3002<br \/>\u305d\u308c\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u547c\u3073\u51fa\u3055\u308c\u308b\u30a4\u30d9\u30f3\u30c8\u306f\u65e9\u3005\u306b\u7d42\u4e86\u3057\u3066\u304a\u3044\u3066\u3001<br \/>\u91cd\u3044\u52d5\u4f5c\u306f\u3001\u975e\u540c\u671f\u3067\u5b9f\u884c\u3055\u305b\u308c\u3070\u3044\u3044\u3088\u306d\u3068\u3044\u3046\u3053\u3068\u3092\u3084\u3063\u3066\u308b\u308f\u3051\u3067\u3059\u3002<br \/>\u305d\u308c\u3092\u7c21\u5358\u306b\u66f8\u304f\u65b9\u6cd5\u304c\u4e0a\u306e\u3067\u3059\u3002delegate(){ &#8230; }\u3068\u3044\u3046\u306e\u306f\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u3067\u3059\u3002<br \/>Perl\u3067\u8a00\u3046sub{ &#8230; }\u307f\u305f\u3044\u306a\u3082\u3093\u3067\u3059\u3002\u3053\u306e\u4e2d\u306b\u3044\u308d\u3044\u308d\u66f8\u3044\u305f\u3089\u3001\u9069\u5f53\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u7528\u610f\u3057\u3066\u305d\u308c\u3067\u30c7\u30ea\u30b2\u30fc\u30c8\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u3068\u3002<br \/>\u305d\u308c\u3092\u9069\u5f53\u306a\u30c7\u30ea\u30b2\u30fc\u30c8\u578b\u306b\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u3001BeginInvoke\u3059\u308b\u3060\u3051\u3067\u3044\u3044\u3067\u3059\u306d\u2026<br \/>\u3068\u8a00\u3044\u305f\u3044\u3051\u3069\u3001EndInvoke\u3057\u306a\u3044\u3068\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3059\u308b\u3068\u304b\u3002\u307e\u3041\u5c0f\u898f\u6a21\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3089\u7121\u8996\u3057\u3066\u3082\u3044\u3044\u304b\u3082\u3060\u3051\u3069\u3002<\/p>\n<pre>System.Threading.ThreadStart action=delegate() {<br \/>  \/\/\u91cd\u3044\u52d5\u4f5c<br \/>};<br \/>action.BeginInvoke(delegate(IAsyncResult ar) { action.EndInvoke(ar); },null);<\/pre>\n<p>\u307e\u3041\u3001\u306a\u3093\u3068\u3044\u3046\u304b\u5909\u308f\u308a\u6620\u3048\u306e\u3057\u306a\u3044\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3002<br \/>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3082\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u3067\u66f8\u3044\u305f\u7a0b\u5ea6\u3067\u3059\u306d\u3002<br \/><a href=\"\/fdiary\/read.php\/1193845044\">\u300c\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3092\u5b9f\u73fe\u3057\u3066\u3044\u3044\u3053\u3068\u3063\u3066\u306a\u306b\u300d<\/a>\u306e\u8a18\u4e8b\u306e\u5185\u5bb9\u3068\u307b\u3068\u3093\u3069\u4e00\u7dd2\u3002<br \/>\u305f\u3060\u3001\u3061\u3087\u3063\u3068\u9762\u767d\u3044\u306e\u304c\u3001action\u3068\u3044\u3046\u306e\u304c\u3001\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u7528\u306e\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u306e\u4e2d\u306b\u3082\u51fa\u73fe\u3057\u3066\u3044\u308b\u3053\u3068\u3002<br \/>\u306a\u3093\u304b\u5909\u3060\u306a\u3068\u601d\u3063\u305f\u4eba\u306f\u92ed\u3044\u3068\u601d\u3046\u3001\u3051\u3069\u5909\u3060\u306a\u3068\u601d\u308f\u306a\u3044\u3053\u3068\u3082\u307e\u305f\u5927\u5207\u306a\u4e8b\u3067\u3059\u3002<br \/>\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u306f\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3092\u6301\u3061\u8fbc\u3080\u3053\u3068\u3082\u3067\u304d\u308b\u3093\u3060\u3068\u3002<br \/>\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u3081\u3093\u3069\u304f\u3055\u3044\u3089\u3057\u3044\u3067\u3059\u3051\u3069\u3001C#\u4f7f\u3046\u4eba\u304b\u3089\u3059\u308c\u3070\u3069\u3046\u3067\u3082\u3044\u3044\u3053\u3068\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>\u307e\u3041\u975e\u5e38\u306b\u3042\u308a\u304c\u305f\u3044\u4ed5\u639b\u3051\u3067\u3057\u3066\u3001\u305d\u306e\u90e8\u5206\u3092\u56f2\u3080\u3060\u3051\u3067\u3059\u6e08\u3080\u306e\u3067\u697d\u3067\u3059\u306d\u3002<br \/>\u306a\u304b\u306a\u304b\u3064\u304b\u307f\u306b\u304f\u3044\u3067\u3059\u3051\u3069\u3001\u3053\u308c\u306f\u30d6\u30ed\u30c3\u30af\u5185\u3092\u5225\u306b\u5b9f\u884c\u3057\u3066\u3082\u3089\u3046\u306e\u3060\u3050\u3089\u3044\u306e\u6c17\u6301\u3061\u3067\u3044\u3044\u306e\u3067\u3059\u3002<br \/>\u3068\u3053\u308d\u304c\u3061\u3087\u3063\u3068Form\u306e\u64cd\u4f5c\u306b\u3064\u3044\u3066\u306f\u554f\u984c\u304c\u3042\u308b\u3002<br \/>\u3068\u3044\u3046\u306e\u306fForm\u306f\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u524d\u63d0\u306a\u306e\u3067\u3001\u4ed6\u306e\u30b9\u30ec\u30c3\u30c9\u304b\u3089\u306e\u64cd\u4f5c\u3092\u62d2\u5426\u3059\u308b\u3089\u3057\u3044\u3002<br \/>\u305d\u308c\u306f\u56f0\u3063\u305f\u3001\u3068\u601d\u3046\u306e\u3060\u304c\u3001\u304d\u3061\u3093\u3068\u56de\u907f\u65b9\u6cd5\u304c\u3042\u308b\u306e\u3067\u3002<br \/>\u3053\u308c\u3082\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u5927\u6d3b\u8e8d\u3067\u3059\u3002<\/p>\n<pre>this.Invoke((MethodInvoker)delegate() { this.label1.Text=\"fooooo!\"; this.Refresh(); });<\/pre>\n<p>this\u3068\u3044\u3046\u306e\u306f\u30d5\u30a9\u30fc\u30e0\u81ea\u8eab\u306e\u3053\u3068\u3002<br \/>\u30d5\u30a9\u30fc\u30e0\u81ea\u8eab\u306b\u4ee3\u7406\u3067\u5b9f\u884c\u3057\u3066\u3044\u305f\u3060\u304f\u7a0b\u5ea6\u306b\u8003\u3048\u308c\u3070\u3044\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>Invoke\u30e1\u30bd\u30c3\u30c9\u306f\u5b9f\u884c\u304c\u7d42\u4e86\u3059\u308b\u307e\u3067\u8fd4\u3063\u3066\u304d\u307e\u305b\u3093\u3002\u4ee3\u7406\u3067\u5b9f\u884c\u3057\u7d42\u308f\u308b\u307e\u3067\u5f85\u3063\u3066\u304f\u308c\u308b\u3068\u3002<br \/>\u307e\u3041\u305d\u306e\u8fba\u306e\u90fd\u5408\u3082\u3042\u308b\u306e\u3067EndInvoke\u306e\u3053\u3068\u306f\u6c17\u306b\u3057\u306a\u304f\u3066OK\u3067\u3059\u3002<br \/>\u3068\u3053\u308d\u3067\u3001\u3055\u3063\u304d\u306fSystem.Threading.ThreadStart\u30c7\u30ea\u30b2\u30fc\u30c8\u3060\u3063\u305f\u306e\u306b\u3001<br \/>\u4eca\u306f\u3001System.Windows.Forms.MethodInvoker\u30c7\u30ea\u30b2\u30fc\u30c8\u4f7f\u3063\u3066\u307e\u3059\u306d\u3002<br \/>\u307e\u3041\u3069\u3063\u3061\u3082\u5f15\u6570\u7121\u3057\u306e\u30c7\u30ea\u30b2\u30fc\u30c8\u306a\u3093\u3067\u3069\u3063\u3061\u3067\u3082\u3044\u3044\u3093\u3060\u3051\u3069\u3001<br \/>\u524d\u8005\u306fForm\u4ee5\u5916\u3067\u3082\u4f7f\u3046\u3051\u3069\u5f8c\u8005\u306fForm\u3067\u3057\u304b\u4f7f\u308f\u3093\u306a\u3068\u304b\u3002<br \/>\u305d\u3046\u3044\u3046\u610f\u56f3\u3060\u3051\u3069\u3001\u3042\u307e\u308a\u6c17\u306b\u3057\u306a\u304f\u3066OK\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>\u3055\u3063\u304d\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3092\u6301\u3061\u8fbc\u3093\u3067\u3082\u52dd\u624b\u306b\u89e3\u91c8\u3057\u3066\u304f\u308c\u308b\u3068\u8a00\u3044\u307e\u3057\u305f\u3002<br \/>\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u306a\u3093\u3060\u304c\u3001\u3053\u308c\u306f3\u3064\u306b\u5206\u985e\u3055\u308c\u308b\u3002<br \/>1\u3064\u306fthis\u3082\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3082\u4f7f\u308f\u306a\u3044\u306e\u3002\u3053\u308c\u306f\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u308b\u3060\u3051\u3002<br \/>2\u3064\u76ee\u306fthis\u306f\u4f7f\u3046\u3051\u3069\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306f\u4f7f\u308f\u306a\u3044\u306e\u3002\u3053\u308c\u306f\u9759\u7684\u3058\u3083\u306a\u3044\u30e1\u30bd\u30c3\u30c9\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3060\u3051\u3002<br \/>\u307e\u3041\u3053\u306e2\u3064\u306f\u305d\u3093\u306a\u306b\u96e3\u3057\u304f\u306a\u3044\u3093\u3067\u3059\u3088\u3002\u5225\u306b\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u306a\u3057\u3067\u3082\u4f5c\u308b\u306e\u306f\u7c21\u5358\u3002<br \/>\u3051\u3069\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3092\u4f7f\u3046\u306e\u306f\u7d50\u69cb\u96e3\u3057\u3044\u3067\u3059\u3002<br \/>\u4f7f\u3046\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3068this\u3092\u4fdd\u6301\u3059\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\u3092\u81ea\u52d5\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\u305d\u308c\u306b\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u306e\u4e2d\u8eab\u3092\u305d\u306e\u30af\u30e9\u30b9\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u767b\u9332\u3057\u307e\u3059\u3002<br \/>\u3053\u306e\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u3084\u308a\u307e\u3059\u3002<br \/>\u305d\u306e\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u3092\u4f7f\u3046\u30e1\u30bd\u30c3\u30c9\u306e\u6700\u521d\u306b\u305d\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f5c\u3063\u3066\u3001this\u3092\u4ee3\u5165\u3057\u307e\u3059\u3002<br \/>\u305d\u308c\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u3092\u53d6\u308a\u6271\u3046\u306f\u305a\u306e\u64cd\u4f5c\u3082\u5168\u90e8\u3001\u305d\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u5909\u6570\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u306b\u5909\u66f4\u3059\u308b\u3002<br \/>\u3068\u3044\u3046\u975e\u5e38\u306b\u8907\u96d1\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u3002<br \/>\u30b3\u30f3\u30d1\u30a4\u30e9\u304b\u3089\u3059\u308c\u3070\u305f\u307e\u3089\u306a\u3044\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3067\u3059\u306d\u3002<br \/>C# 2.0\u3001C#3.0\u3068\u304d\u3066\u3001\u30c7\u30ea\u30b2\u30fc\u30c8\u3092\u6e6f\u6c34\u306e\u3088\u3046\u306b\u4f7f\u3046\u8a00\u8a9e\u306b\u306a\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002<br \/>C# 3.0\u3060\u3063\u305f\u3089\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u3082\u3063\u3068\u7c21\u5358\u306b\u66f8\u3051\u308b\u3057\u3002<br \/>\u3055\u3059\u304c\u306b\u50d5\u306f\u6e6f\u6c34\u306e\u3088\u3046\u306b\u4f7f\u3046\u308f\u3051\u3058\u3083\u306a\u3044\u3051\u3069\u3001\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u3063\u3066\u624b\u8efd\u3067\u3059\u306d\u3002<br \/>\u305f\u307e\u306b\u306f\u6d3b\u7528\u3059\u308b\u306e\u3082\u3044\u3044\u306e\u3067\u306f?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u3001\u3061\u3087\u3063\u3068\u3044\u308d\u3044\u308d\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u305f\u3002\u307e\u3041\u305d\u3046\u3044\u3046\u65e5\u3082\u3042\u308a\u307e\u3059\u3088\u306d\u3002\u305d\u308c\u306b\u3057\u3066\u3082\u533f\u540d\u30c7\u30ea\u30b2\u30fc\u30c8\u3063\u3066\u4fbf\u5229\u3067\u3059\u306d\u3002 ((MethodInvoker)delegate() { \/\/\u91cd\u3044\u52d5\u4f5c}).BeginInvoke( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1422","post","type-post","status-publish","format-standard","hentry","category-computer"],"_links":{"self":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/1422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1422"}],"version-history":[{"count":0,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=\/wp\/v2\/posts\/1422\/revisions"}],"wp:attachment":[{"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hdmr.org\/d\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}