Reggie
Reggie

Reputation: 13

Can't use some functions in C#!

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

Answers (2)

ctacke
ctacke

Reputation: 67198

This blog entry might also be of interest/use for the first one.

Upvotes: 1

Gabe
Gabe

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

Related Questions