解决方法
从
here
///Create a new instance of the usps Manager class ///The constructor takes 2 arguments,the first is ///your usps Web Tools User ID and the second is ///true if you want to use the usps Test Servers. uspsManager m = new uspsManager("YOUR_USER_ID",true); Address a = new Address(); a.Address2 = "6406 Ivy Lane"; a.City = "Greenbelt"; a.State = "MD"; ///By calling ValidateAddress on the uspsManager object,///you get an Address object that has been validated by the ///usps servers Address validatedAddress = m.ValidateAddress(a);
原文地址:https://www.jb51.cc/csharp/93196.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。