Reputation: 13
I can't seem to get access to some C# functions even though I have included the proper files/references! I can't seem to get access to System.Net.Dns or System.Net.WebRequest.GetRequestStream! Any ideas what could be causing this?
Upvotes: 0
Views: 495
Reputation: 86838
I'm guessing that you're using Silverlight, where those aren't available.
If you go to the MSDN page for WebRequest.GetRequestStream
or System.Net.Dns
, you'll see a link near the top that says "Other Versions". If you click on it, you'll see that it lists a number of things like ".NET Framework 4". If the platform you're using isn't listed, you can't use the API. For example, Silverlight isn't mentioned for those APIs, so they're not available in Silverlight.
Upvotes: 2