{"id":11711,"date":"2019-06-30T10:06:58","date_gmt":"2019-06-30T01:06:58","guid":{"rendered":"https:\/\/elleneast.com\/?p=11711"},"modified":"2019-07-02T09:39:57","modified_gmt":"2019-07-02T00:39:57","slug":"__trashed-2","status":"publish","type":"post","link":"https:\/\/elleneast.com\/?p=11711","title":{"rendered":"\u3010VB.NET\u3011\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f: &#8216;System.MissingMemberException&#8217; (Microsoft.VisualBasic.dll \u306e\u4e2d)"},"content":{"rendered":"<p>Visual Studio \u3067 VB.NET \u306e\u30a2\u30d7\u30ea\u3092 F5 \u3067\u958b\u59cb\u3059\u308b\u3068\u3001\u51fa\u529b\u30a6\u30a3\u30f3\u30c9\u30a6\uff08\u307e\u305f\u306f\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\uff09\u306b\u4e0b\u8a18\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u3002<\/p>\n<div class=\"sng-box box15\">\n<p>\u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f: \u2018System.MissingMemberException\u2019 (Microsoft.VisualBasic.dll \u306e\u4e2d)<\/p>\n<\/div>\n<p>\u30a8\u30e9\u30fc\u306e\u610f\u5473\u306f\u300c\u5b58\u5728\u3057\u306a\u3044\u3001\u307e\u305f\u306f public \u3068\u3057\u3066\u5ba3\u8a00\u3055\u308c\u3066\u3044\u306a\u3044\u30af\u30e9\u30b9\u30e1\u30f3\u30d0\u30fc\u306b\u52d5\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3088\u3046\u3068\u3057\u305f\u300d\u3068\u3044\u3046\u3053\u3068\uff08Microsoft Docs \u3088\u308a\u5f15\u7528\uff09\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5b9f\u306f\u3001\u3053\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u304b\u306a\u308a\u4ee5\u524d\u304b\u3089\u51fa\u3066\u3044\u305f\u3093\u3060\u3051\u3069\u3001\u30a2\u30d7\u30ea\u306e\u52d5\u4f5c\u306b\u554f\u984c\u304c\u7121\u304b\u3063\u305f\u306e\u3067\u3042\u307e\u308a\u6c17\u306b\u3057\u3066\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u305d\u308c\u306b\u300cMicrosoft.VisualBasic.dll \u306e\u4e2d\u300d\u3067\u767a\u751f\u3057\u3066\u3044\u308b\u4f8b\u5916\u30a8\u30e9\u30fc\u3068\u3044\u3046\u3053\u3068\u306f Microsoft.VisualBasic.dll \u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u554f\u984c\u3060\u3068\u89e3\u91c8\u3057\u3066\u3044\u305f\u306e\u3067\u3001\u300c\u81ea\u5206\u304c\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u306e\u305b\u3044\u3067\u306f\u306a\u3044\u300d\u300c\u76f4\u3057\u3088\u3046\u304c\u306a\u3044\u300d\u3068\u601d\u3063\u3066\u3044\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3057\u304b\u3057\u305d\u306e\u89e3\u91c8\u306f\u9593\u9055\u3063\u3066\u3044\u305f\u3089\u3057\u3044\uff08\u5c11\u306a\u304f\u3068\u3082\u4eca\u56de\u306e\u5834\u5408\u306f\uff09\u3002\uff08\u4eca\u56de\u306f\uff09\u3069\u3046\u3084\u3089 Microsoft.VisualBasic.dll \u306e\u5916\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306e\u305b\u3044\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u8a72\u5f53\u7b87\u6240\u3092\u63a2\u3057\u59cb\u3081\u308b\u3068\u9593\u3082\u306a\u304f\u767a\u898b\u3002<\/p>\n<p>\u5192\u982d\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u539f\u56e0\u306f\u3053\u3093\u306a\u30b3\u30fc\u30c9\u3060\u3063\u305f\u3002<\/p>\n<pre class=\"lang:vbnet decode:true \">Dim name As String =  \"\"\n\nTry\n    name = ctrl.Name 'TypeOf ctrl Is Object\nCatch ex As Exception\nEnd Try<\/pre>\n<p>ctrl \u306e\u578b\u306f Object \u578b\u3002<\/p>\n<p>ctrl \u306b .Name \u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u5206\u304b\u3089\u306a\u3044\u306e\u3067 Try \uff5e Catch \u3067\u4f8b\u5916\u30a8\u30e9\u30fc\u3092\u88dc\u8db3\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u6b62\u307e\u3089\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u3060\u3063\u305f\u3002<\/p>\n<p>\u5f93\u3063\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u4f5c\u81ea\u4f53\u306b\u554f\u984c\u306f\u7121\u304b\u3063\u305f\u3082\u306e\u306e\u3001\u5b9f\u969b\u306f\u3053\u3053\u3067\u4f8b\u5916\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b\u51fa\u529b\u30a6\u30a3\u30f3\u30c9\u30a6\uff08\u307e\u305f\u306f\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\uff09\u306b\u305d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u3044\u305f\u306e\u3060\u3068\u5206\u304b\u3063\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u524d\u8ff0\u306e\u30b3\u30fc\u30c9\u3092\u305d\u306e\u307e\u307e\u653e\u3063\u3066\u304a\u3044\u3066\u3082\u5b9f\u5bb3\u306f\u306a\u3044\u304c\u3001\u3082\u3046\u5c11\u3057\u30b9\u30de\u30fc\u30c8\u306a\u3084\u308a\u65b9\u304c\u3042\u308b\u3068\u5206\u304b\u3063\u305f\u306e\u3067\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304a\u3044\u305f\u3002<\/p>\n<pre class=\"lang:vbnet decode:true\">If ctrl.GetType.GetProperty(\"Name\") IsNot Nothing Then\n    name = ctrl.Name\nEnd If<\/pre>\n<p>\u3053\u308c\u3067\u5192\u982d\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u306a\u304f\u306a\u3063\u3066\u30b9\u30c3\u30ad\u30ea\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio \u3067 VB.NET \u306e\u30a2\u30d7\u30ea\u3092 F5 \u3067\u958b\u59cb\u3059\u308b\u3068\u3001\u51fa\u529b\u30a6\u30a3\u30f3\u30c9\u30a6\uff08\u307e\u305f\u306f\u30a4\u30df\u30c7\u30a3\u30a8\u30a4\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\uff09\u306b\u4e0b\u8a18\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u3002 \u4f8b\u5916\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3057\u305f: \u2018System.MissingMembe &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2656,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[57],"tags":[60],"class_list":{"0":"post-11711","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-57","8":"tag-vb-net"},"_links":{"self":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/11711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11711"}],"version-history":[{"count":3,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/11711\/revisions"}],"predecessor-version":[{"id":11747,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/posts\/11711\/revisions\/11747"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=\/wp\/v2\/media\/2656"}],"wp:attachment":[{"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elleneast.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}