Home All Groups Group Topic Archive Search About
Author
5 May 2006 9:33 AM
Sathyaish
In the System.Uri class I do not understand the following properties
very well, and I suspect that they have not been implemented because
they yield static results on different input.

1. IsFile: Always returns false.

2. UserEscaped: I am not sure this property works either, or what it is
supposed to yield. This one totally escapes me, pun intended.
(http://groups.google.com/group/microsoft.public.dotnet.framework/browse_thread/thread/875f641d16aa284f/233aac26deb63c7c#233aac26deb63c7c)

3. Fragment: Because I do not fully understand the UserEscaped
property,
(http://groups.google.com/group/microsoft.public.dotnet.framework/browse_thread/thread/875f641d16aa284f/233aac26deb63c7c#233aac26deb63c7c)
and because Fragment is supposed to return the escaped fragment of the
Uri, I am not sure I know what this means. Can someone please clarify
what this property is supposed to return?


Also, can someone at Microsoft confirm if the above mentioned four
properties have been implemented in v1.1?

Author
5 May 2006 9:50 AM
Larry Lard
Sathyaish wrote:
> In the System.Uri class I do not understand the following properties
> very well, and I suspect that they have not been implemented because
> they yield static results on different input.
>
> 1. IsFile: Always returns false.

        Dim fileUri As System.Uri

        fileUri = New
System.Uri("file://c:/windows/system32.kernel23.dll")

        Console.WriteLine(fileUri.IsFile)

The escape stuff is answered in your other thread, I think.

--
Larry Lard
Replies to group please
Author
5 May 2006 9:56 AM
Sathyaish
ah! so the IsFile property really checks the HTTPElementPrefix. Thanks!