详细介绍API .. API是什么?它为什么用?用例子解释 [英] give detail of API..what is API? why it is use? explain with example

查看:68
本文介绍了详细介绍API .. API是什么?它为什么用?用例子解释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是API?如何使用API​​作为示例。

什么是API KEY?

what is API?how to use API with example.
what is API KEY?

推荐答案

我不确定是否你有资格在这个时候使用这个论坛;或许,你需要先学习一些编程手册并学习基础知识,最简单的练习。

关于你的问题:

http://en.wikipedia.org/wiki/API [ ^ ],

http:// en .wikipedia.org / wiki / Application_programming_interface_key [ ^ ] 。



在.NET中,它的API由其BCL表示,而且更广泛,FCL:

http://en.wikipedia.org/wiki/Base_Class_Library [ ^ ],

http:/ /en.wikipedia.org / wiki / Framework_Class_Library [ ^ ]。



参见:

http:// en。 wikipedia.org/wiki/Global_Assembly_Cache [ ^ ],

http://msdn.microsoft.com/en-us/library/ yf1d93sz.aspx [ ^ ],

揭开.NET全局汇编缓存的神秘面纱 [ ^ ]。



当然,你开发的任何系统都可以ave自己的API。您只需开发一些可用作库的程序集;并声明一些您希望用户使用的类型及其成员,使用访问修饰符 public

http://en.wikipedia.org/wiki/Assembly_%28CLI%29 [ ^ ],

http://msdn.microsoft.com/en-us/library/hk5f40ct%28v=vs.85% 29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/wxh6fsc7%28v=vs.110%29.aspx [ ^ ]。



例子?他们没有多大意义。只需查看MSDN代码示例,例如,几乎每个帮助页面都附带一些库类或结构。任何一个,任何一个。你可以从它的顶部开始:

http://msdn.microsoft.com /en-us/library/gg145045.aspx [ ^ ]。



-SA
I'm not sure if you are qualified enough to use this forum at this moment; perhaps, you need to take some programming manual and learn the very basics first, with simplest exercises.
As to your questions:
http://en.wikipedia.org/wiki/API[^],
http://en.wikipedia.org/wiki/Application_programming_interface_key[^].

In .NET, its API is represented by its BCL, and, wider, FCL:
http://en.wikipedia.org/wiki/Base_Class_Library[^],
http://en.wikipedia.org/wiki/Framework_Class_Library[^].

See also:
http://en.wikipedia.org/wiki/Global_Assembly_Cache[^],
http://msdn.microsoft.com/en-us/library/yf1d93sz.aspx[^],
Demystifying the .NET Global Assembly Cache[^].

But of course, any system you develop can have its own API. You simply develop some assembly which can be used as a library; and you declare some types which you want your users to use, as well as their member, with the access modifier public:
http://en.wikipedia.org/wiki/Assembly_%28CLI%29[^],
http://msdn.microsoft.com/en-us/library/hk5f40ct%28v=vs.85%29.aspx[^],
http://msdn.microsoft.com/en-us/library/wxh6fsc7%28v=vs.110%29.aspx[^].

Examples? They would not make much sense. Just look at MSDN code sample, for example, one which comes with nearly every help page on some library class or structure. Any of them, any at all. You can start from its top:
http://msdn.microsoft.com/en-us/library/gg145045.aspx[^].

—SA


这篇关于详细介绍API .. API是什么?它为什么用?用例子解释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆