久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='pZkPK'></bdo><ul id='pZkPK'></ul>
  • <small id='pZkPK'></small><noframes id='pZkPK'>

        <legend id='pZkPK'><style id='pZkPK'><dir id='pZkPK'><q id='pZkPK'></q></dir></style></legend>
      1. <i id='pZkPK'><tr id='pZkPK'><dt id='pZkPK'><q id='pZkPK'><span id='pZkPK'><b id='pZkPK'><form id='pZkPK'><ins id='pZkPK'></ins><ul id='pZkPK'></ul><sub id='pZkPK'></sub></form><legend id='pZkPK'></legend><bdo id='pZkPK'><pre id='pZkPK'><center id='pZkPK'></center></pre></bdo></b><th id='pZkPK'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pZkPK'><tfoot id='pZkPK'></tfoot><dl id='pZkPK'><fieldset id='pZkPK'></fieldset></dl></div>
      2. <tfoot id='pZkPK'></tfoot>
      3. 未找到方法使用 ColdFusion 中的列表調(diào)用 .NET 方法

        Method Not Found Calling .NET Method with List from ColdFusion(未找到方法使用 ColdFusion 中的列表調(diào)用 .NET 方法)
        <legend id='8MTXW'><style id='8MTXW'><dir id='8MTXW'><q id='8MTXW'></q></dir></style></legend>
        <i id='8MTXW'><tr id='8MTXW'><dt id='8MTXW'><q id='8MTXW'><span id='8MTXW'><b id='8MTXW'><form id='8MTXW'><ins id='8MTXW'></ins><ul id='8MTXW'></ul><sub id='8MTXW'></sub></form><legend id='8MTXW'></legend><bdo id='8MTXW'><pre id='8MTXW'><center id='8MTXW'></center></pre></bdo></b><th id='8MTXW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8MTXW'><tfoot id='8MTXW'></tfoot><dl id='8MTXW'><fieldset id='8MTXW'></fieldset></dl></div>
          <tfoot id='8MTXW'></tfoot>
            <tbody id='8MTXW'></tbody>

                • <bdo id='8MTXW'></bdo><ul id='8MTXW'></ul>

                  <small id='8MTXW'></small><noframes id='8MTXW'>

                  本文介紹了未找到方法使用 ColdFusion 中的列表調(diào)用 .NET 方法的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  對(duì)于某些背景,這與 將 IEnumerable 變量從冷融合.我已將代碼更改為使用列表,并取得了進(jìn)展,但在使用 .NET 和 ColdFusion 的簡(jiǎn)單數(shù)據(jù)類型以外的任何內(nèi)容時(shí),仍會(huì)遇到障礙.所以這是當(dāng)前的問(wèn)題.

                  For some background, this is related to Passing IEnumerable Variables into .NET from ColdFusion. I've changed the code to use a list instead, and have made progress, but continue to hit roadblocks when using anything other than simple data types with .NET and ColdFusion. So here's the current issue.

                  首先,我有一個(gè)包含以下 VideoWallEvent.cs 文件的 .dll:

                  First, I have a .dll with the following VideoWallEvent.cs file:

                  using System;
                  using System.Collections.Generic;
                  using System.Linq;
                  using System.Text;
                  
                  namespace CoStar.Utilities.VideoWall
                  {
                      public class VideoWallEventActivityCollection
                      {
                          public string CountryCode { get; set; }
                          public DateTime ActivityDate { get; set; }
                          public List<VideoWallEvent> Events { get; set; }
                  
                      }
                  
                      public class VideoWallEvent
                      {
                  
                          public string ID { get; set; }
                          public decimal Latitude { get; set; }
                          public decimal Longitude { get; set; }
                  
                          public VideoWallEvent(string EventID, decimal EventLatitude, decimal EventLongitude)
                          {
                              ID = EventID;
                              Latitude = EventLatitude;
                              Longitude = EventLongitude;
                          }
                      }
                  }
                  

                  我還按照上一個(gè)問(wèn)題的說(shuō)明使用 JNBProxyGUI.exe 生成了一個(gè)代理對(duì)象對(duì)象.給出上面的 dll 和我生成的代理 jar,我運(yùn)行以下 ColdFusion 代碼:

                  I've also generated a proxy object object using JNBProxyGUI.exe following instructions from the prior question. Give that the above dll, and the proxy jar I've generated, I run the following ColdFusion code:

                  <cfset UtilitiesProxy = ExpandPath("UtilitiesProxy.jar") />
                  <cfset CoStarUtilities = ExpandPath("CoStar.Utilities.dll") />
                  <cfset Paths = ArrayToList([CoStarUtilities, UtilitiesProxy])>
                  
                  <cfset theEvent = CreateObject(".net", "CoStar.Utilities.VideoWall.VideoWallEvent", Paths) />
                  <cfset eventList = CreateObject(".net","System.Collections.Generic.List`1", Paths).init(theEvent.getDotNetClass()) />
                  
                  <cfset eventList.Add(theEvent.Init("1234", javacast("bigdecimal","30.2669444"), javacast("bigdecimal","-97.7427778"))) />
                  <cfset eventList.Add(theEvent.Init("1235", javacast("bigdecimal","30.2669444"), javacast("bigdecimal","-97.7427778"))) />
                  
                  <cfset eventCollection = CreateObject(".net", "CoStar.Utilities.VideoWall.VideoWallEventActivityCollection", CoStarUtilities) />
                  <cfdump var="#eventList.ToArray()#" label="Items in eventList" />
                  <hr />
                  <cfdump var="#eventCollection#" label="eventCollection" />
                  <cfdump var="#eventList#" label="eventList" />
                  
                  <cfset eventCollection.Set_Events(eventList) />
                  

                  這給了我以下輸出:

                  從屏幕截圖中可以看出,我可以成功地將項(xiàng)目添加到列表中,我可以獲得需要 List 對(duì)象的 ActivityCollection 對(duì)象,但是調(diào)用 Set_Events 方法并傳遞 List 會(huì)拋出以下錯(cuò)誤:

                  As you can see from the screenshot, I can successfully add items to the list, I can get the ActivityCollection object that expects a List object, but calling the Set_Events method and passing the List throws the following error:

                  The Set_Events method was not found.
                  
                  Either there are no methods with the specified method name and argument types 
                  or the Set_Events method is overloaded with argument types that ColdFusion cannot
                  decipher reliably. ColdFusion found 0 methods that match the provided arguments. 
                  If this is a Java object and you verified that the method exists, use the javacast 
                  function to reduce ambiguity.
                  
                  The error occurred in C:/inetpub/scribble/VideoWall/index.cfm: line 17
                  15 :    <cfdump var="#eventList#" label="eventList" />
                  16 : 
                  17 :    <cfset eventCollection.Set_Events(eventList) />
                  

                  所以我現(xiàn)在需要幫助來(lái)弄清楚如何正確地將這個(gè) List 推送到 Set_Events() 方法中.

                  So I now need help figuring out how to properly push this List into the Set_Events() method.

                  推薦答案

                  (來(lái)自評(píng)論)

                  信不信由你,這只是一個(gè)組裝路徑問(wèn)題.你必須使用匯編列表中的兩個(gè)文件,而不僅僅是CoStarUtilities,即:

                  Believe it or not it is just an assembly path problem. You have to use both files in the assembly list, not just CoStarUtilities, ie:

                   <cfset eventCollection = CreateObject(".net"
                                   , "CoStar.Utilities.VideoWall.VideoWallEventActivityCollection"
                                   , Paths ) />
                  

                  這篇關(guān)于未找到方法使用 ColdFusion 中的列表調(diào)用 .NET 方法的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時(shí)刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時(shí)突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調(diào)用按鈕 OnClick)
                  ASP.net C# Gridview ButtonField onclick event(ASP.net C# Gridview ButtonField onclick 事件)
                  Adding OnClick event to ASP.NET control(將 OnClick 事件添加到 ASP.NET 控件)
                  Multiple submit Button click problem?(多個(gè)提交按鈕點(diǎn)擊問(wèn)題?)

                    <i id='wYJnY'><tr id='wYJnY'><dt id='wYJnY'><q id='wYJnY'><span id='wYJnY'><b id='wYJnY'><form id='wYJnY'><ins id='wYJnY'></ins><ul id='wYJnY'></ul><sub id='wYJnY'></sub></form><legend id='wYJnY'></legend><bdo id='wYJnY'><pre id='wYJnY'><center id='wYJnY'></center></pre></bdo></b><th id='wYJnY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='wYJnY'><tfoot id='wYJnY'></tfoot><dl id='wYJnY'><fieldset id='wYJnY'></fieldset></dl></div>
                  1. <legend id='wYJnY'><style id='wYJnY'><dir id='wYJnY'><q id='wYJnY'></q></dir></style></legend>

                          <tbody id='wYJnY'></tbody>
                      • <tfoot id='wYJnY'></tfoot>
                            <bdo id='wYJnY'></bdo><ul id='wYJnY'></ul>

                            <small id='wYJnY'></small><noframes id='wYJnY'>

                            主站蜘蛛池模板: 午夜在线小视频 | 日韩黄色大片 | 天堂影院av | 国产二区精品 | 亚洲黄色在线视频 | 能看毛片的网站 | 国产精品福利在线 | 中文字幕在线免费 | 亚洲免费观看 | 97人人干| 精品成人av| 亚欧在线观看 | 精品久久久久久 | av色| 噜噜视频| 人人草人人 | 国产精品久久久久久久久久久久久久 | 日韩一区二区三区在线播放 | 国产a级大片 | 一级黄色免费视频 | 亚洲成人免费观看 | 成人爱爱| 韩国三级中文字幕hd久久精品 | 婷婷综合视频 | 国产一二区 | 日本中文字幕在线播放 | 国产亚洲一区二区三区 | 五月天婷婷在线观看 | 色片在线 | 久久精品久久精品 | 欧美日韩免费 | 亚洲免费视频一区 | 又色又爽又黄18网站 | 午夜在线观看视频 | 国产午夜三级 | aaaaaa毛片| 免费精品 | 色噜噜狠狠一区二区三区果冻 | 亚洲裸体视频 | a在线免费观看 | 亚洲第一毛片 |