如何找到一个集名称的.NET命名空间,例如,Microsoft.WindowsAzure.ServiceRuntime [英] How to find an assembly name for a .NET namespace, for example, Microsoft.WindowsAzure.ServiceRuntime

查看:166
本文介绍了如何找到一个集名称的.NET命名空间,例如,Microsoft.WindowsAzure.ServiceRuntime的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通用的问题,具体的例子。这要根据对堆栈&NBSP所有类似的问题很容易,溢出有关的命名空间的程序集。最常见的回答是有问题的 我怎么知道该怎么提及包括导入特定的.NET命名空间? <发现/ EM>。

I have a generic question, and specific example. This should be easy according to all the similar questions on Stack Overflow regarding assemblies for namespaces. The most common answer is found in question How do I know what reference to include to import a specific .NET namespace?.

所有MSDN文档页面提命名空间和组件。

"All MSDN doc pages mention namespace and assembly."

不过这个MSDN网页上没有提到的组件。我错过什么明显的事情?

However on this MSDN page there is no mention of the assembly. What obvious thing am I missing?

Microsoft.WindowsAzure.ServiceRuntime命名空间

修订:

更具体地说我在寻找的DLL文件以包括Azure的类RoleEnvironment。当我打<大骨节病> F1 ,并期待在其MSDN页面<一href="http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k%28ROLEENVIRONMENT%29;k%28TargetFrameworkMoniker-%22.NETFRAMEWORK,VERSION=V4.0%22%29;k%28DevLang-CSHARP%29&rd=true"相对=nofollow> MSDN RoleEnvironment ,它提到的Microsoft.WindowsAzure.ServiceRuntime命名空间,但没有装配包括。我碰到这样的事情之前,所以我想我会使其成为一个通用的问题。虽然我确实想知道具体的DLL文件来引用,我也想知道答案,所以我知道该怎么做下一次我遇到过这种情况。

More specifically I'm looking for the DLL file to include for the Azure class RoleEnvironment. When I hit F1 and look on its MSDN page MSDN RoleEnvironment, it mentions the Microsoft.WindowsAzure.ServiceRuntime Namespace, but no assembly to include. I've run into things like this before, so I thought I would make it a generic question. Although I do want to know the specific DLL file to reference, I ALSO want to know the answer so I know what to do next time I face this situation.

推荐答案

命名空间没有装配。一个命名空间可以(而且经常是)在几个组件。但具体的类型在特定的组件。所以,如果你对某些类型的从你感兴趣的命名空间中的文件,你会在什么组件,它的类型是看到的。

Namespaces don't have assemblies. One namespace can be (and often is) in several assemblies. But specific types are in specific assemblies. So, if you look at the documentation for some type from the namespace you are interested in, you will see in what assembly that type is.

其他类型的数据从相同的命名空间很可能是在相同的组件,但不必须如此。

Other types from the same namespace are likely to be in the same assembly, but don't have to be.

这篇关于如何找到一个集名称的.NET命名空间,例如,Microsoft.WindowsAzure.ServiceRuntime的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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