Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将示例代码复制到 wcf 项目,它包含 $requestUrl.GetComponents$ ...程序无法识别它(下面有红线)...我应该添加哪个参考来解决问题.. .?
GetComponents是System.Uri类的方法。您只需要引用 System.dll(默认情况下在绝大多数项目中)即可使用它。
GetComponents
System.Uri