Compile warning Access of shared member will not be evaluated

R

Rick

I'm in the process of migrating from VS 2003 to VS 2005. One of the compile
warnings I am seeing is:
"Access of shared member, constant member, enum member or nested type
through an instance; qualifying expression will not be evaluated. "

Code sample:
Dim sUri As New Uri(Request.Url.AbsoluteUri.ToString)

Dim sFileUrl As String = sUri.Scheme & sUri.SchemeDelimiter & sUri.Host

Warning is on sUri.SchemeDelimiter

Is schemedelimiter obsolete now? how do I fix this without a hard coded
string of "\\"?

Can someone point me to an article that explains these compile errors?

Thanks in Advance,

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top