"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[5718],{7051:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>i,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>d});var o=n(5893),a=n(1151);const r={id:"native",title:"19. Native \u9759\u6001\u7c7b",sidebar_label:"19. Native \u9759\u6001\u7c7b"},i=void 0,s={id:"global/native",title:"19. Native \u9759\u6001\u7c7b",description:"\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 Furion 4.8.7.23 + \u7248\u672c\u4f7f\u7528\u3002",source:"@site/docs/global/native.mdx",sourceDirName:"global",slug:"/global/native",permalink:"/docs/global/native",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/global/native.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1680163197,formattedLastUpdatedAt:"Mar 30, 2023",frontMatter:{id:"native",title:"19. Native \u9759\u6001\u7c7b",sidebar_label:"19. Native \u9759\u6001\u7c7b"},sidebar:"global",previous:{title:"18. TaskQueued \u9759\u6001\u7c7b",permalink:"/docs/global/taskqueued"}},l={},d=[{value:"19.1 \u5728 WinForm/WPF \u4e2d\u521b\u5efa\u7a97\u53e3\u5b9e\u4f8b",id:"191-\u5728-winformwpf-\u4e2d\u521b\u5efa\u7a97\u53e3\u5b9e\u4f8b",level:2},{value:"19.2 \u83b7\u53d6\u968f\u673a\u7a7a\u95f2\u7aef\u53e3",id:"192-\u83b7\u53d6\u968f\u673a\u7a7a\u95f2\u7aef\u53e3",level:2}];function c(e){const t={admonition:"admonition",code:"code",h2:"h2",p:"p",pre:"pre",...(0,a.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.admonition,{title:"\u7248\u672c\u8bf4\u660e",type:"important",children:(0,o.jsxs)(t.p,{children:["\u4ee5\u4e0b\u5185\u5bb9\u4ec5\u9650 ",(0,o.jsx)(t.code,{children:"Furion 4.8.7.23 +"})," \u7248\u672c\u4f7f\u7528\u3002"]})}),"\n",(0,o.jsxs)(t.h2,{id:"191-\u5728-winformwpf-\u4e2d\u521b\u5efa\u7a97\u53e3\u5b9e\u4f8b",children:["19.1 \u5728 ",(0,o.jsx)(t.code,{children:"WinForm/WPF"})," \u4e2d\u521b\u5efa\u7a97\u53e3\u5b9e\u4f8b"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-cs",metastring:"showLineNumbers",children:"var form1 = Native.CreateInstance();\r\n\r\nvar form1 = Native.CreateInstance(typeof(Form1)) as Form;\n"})}),"\n",(0,o.jsx)(t.h2,{id:"192-\u83b7\u53d6\u968f\u673a\u7a7a\u95f2\u7aef\u53e3",children:"19.2 \u83b7\u53d6\u968f\u673a\u7a7a\u95f2\u7aef\u53e3"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-cs",metastring:"showLineNumbers",children:"var port = Native.GetIdlePort();\n"})})]})}function u(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},1151:(e,t,n)=>{n.d(t,{Z:()=>s,a:()=>i});var o=n(7294);const a={},r=o.createContext(a);function i(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]);