How do I implement an interface with VB.Net?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim

    How do I implement an interface with VB.Net?

    I am using VB.Net 2.0 and I am completely new to the concept of implementing
    interfaces. Can anyone explain "implementi ng interfaces" to me and perhaps
    give me an example of implementing an interface that would help me implement
    the IIneternetSecur ityManager interface mentioned under "Creating a
    Customized URL Security Manager" on

    and mentioned under "Download Control" on


    This would help me a great understand implementing interfaces and I could
    then implement a few more for my company's internal webbrowser.

    Thanks for your help!


  • Willy Denoyette [MVP]

    #2
    Re: How do I implement an interface with VB.Net?


    "Jim" <reply@groups.p lease> wrote in message
    news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=blue]
    >I am using VB.Net 2.0 and I am completely new to the concept of
    >implementing interfaces. Can anyone explain "implementi ng interfaces" to
    >me and perhaps give me an example of implementing an interface that would
    >help me implement the IIneternetSecur ityManager interface mentioned under
    >"Creating a Customized URL Security Manager" on
    >http://msdn.microsoft.com/library/de...#SecurityZones
    >and mentioned under "Download Control" on
    >http://msdn.microsoft.com/library/de...nload_Control?
    >
    > This would help me a great understand implementing interfaces and I could
    > then implement a few more for my company's internal webbrowser.
    >
    > Thanks for your help!
    >[/color]


    Why cross-post to a bunch of non appropriate NG's, please restrict your
    postings to the vb NG only.

    Willy.


    Comment

    • Jim

      #3
      Re: How do I implement an interface with VB.Net?

      Thank you for that most informative and helpful response.


      "Willy Denoyette [MVP]" <willy.denoyett e@telenet.be> wrote in message
      news:eMUYXUYBGH A.636@TK2MSFTNG P10.phx.gbl...[color=blue]
      >
      > "Jim" <reply@groups.p lease> wrote in message
      > news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=green]
      >>I am using VB.Net 2.0 and I am completely new to the concept of
      >>implementin g interfaces. Can anyone explain "implementi ng interfaces" to
      >>me and perhaps give me an example of implementing an interface that would
      >>help me implement the IIneternetSecur ityManager interface mentioned under
      >>"Creating a Customized URL Security Manager" on
      >>http://msdn.microsoft.com/library/de...#SecurityZones
      >>and mentioned under "Download Control" on
      >>http://msdn.microsoft.com/library/de...nload_Control?
      >>
      >> This would help me a great understand implementing interfaces and I could
      >> then implement a few more for my company's internal webbrowser.
      >>
      >> Thanks for your help!
      >>[/color]
      >
      >
      > Why cross-post to a bunch of non appropriate NG's, please restrict your
      > postings to the vb NG only.
      >
      > Willy.
      >
      >[/color]


      Comment

      • W.G. Ryan - MVP

        #4
        Re: How do I implement an interface with VB.Net?

        Jim:

        In .NET we don't have multiple inheritance but by using interfaces, you can
        get to the same place by and large. If I have an interface, then the
        compiler knows that each fo the methods and properties must exist in the
        class - it can count on them being there. So in it's simplest form,
        implementing an interface is simply adding a property and method to your
        class for each one in the interface. That way you can do this....

        IList myObject = new ObjectThatImple mentsIList();
        myObject.Item(0 ) ; //b/c IList has Item

        Now, by doing this, you can take an IList object as a paramater and then
        pass in anything that implements IList b/c it effectively "is" an IList
        object.

        Does this help?

        "Jim" <reply@groups.p lease> wrote in message
        news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=blue]
        >I am using VB.Net 2.0 and I am completely new to the concept of
        >implementing interfaces. Can anyone explain "implementi ng interfaces" to
        >me and perhaps give me an example of implementing an interface that would
        >help me implement the IIneternetSecur ityManager interface mentioned under
        >"Creating a Customized URL Security Manager" on
        >http://msdn.microsoft.com/library/de...#SecurityZones
        >and mentioned under "Download Control" on
        >http://msdn.microsoft.com/library/de...nload_Control?
        >
        > This would help me a great understand implementing interfaces and I could
        > then implement a few more for my company's internal webbrowser.
        >
        > Thanks for your help!
        >[/color]


        Comment

        • W.G. Ryan - MVP

          #5
          Re: How do I implement an interface with VB.Net?

          Jim - if you would, shoot me an email to WilliamRyan at gmail dotcom - I
          answered your question briefly below, but I have some material that you will
          probably find helpful - it's too much to simply post but if you'll shoot me
          a private email, I'll do what I can to help.
          "Jim" <reply@groups.p lease> wrote in message
          news:NAWpf.1553 6$kP5.11086@big news5.bellsouth .net...[color=blue]
          > Thank you for that most informative and helpful response.
          >
          >
          > "Willy Denoyette [MVP]" <willy.denoyett e@telenet.be> wrote in message
          > news:eMUYXUYBGH A.636@TK2MSFTNG P10.phx.gbl...[color=green]
          >>
          >> "Jim" <reply@groups.p lease> wrote in message
          >> news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=darkred]
          >>>I am using VB.Net 2.0 and I am completely new to the concept of
          >>>implementi ng interfaces. Can anyone explain "implementi ng interfaces" to
          >>>me and perhaps give me an example of implementing an interface that would
          >>>help me implement the IIneternetSecur ityManager interface mentioned under
          >>>"Creating a Customized URL Security Manager" on
          >>>http://msdn.microsoft.com/library/de...#SecurityZones
          >>>and mentioned under "Download Control" on
          >>>http://msdn.microsoft.com/library/de...nload_Control?
          >>>
          >>> This would help me a great understand implementing interfaces and I
          >>> could then implement a few more for my company's internal webbrowser.
          >>>
          >>> Thanks for your help!
          >>>[/color]
          >>
          >>
          >> Why cross-post to a bunch of non appropriate NG's, please restrict your
          >> postings to the vb NG only.
          >>
          >> Willy.
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • Cor Ligthert [MVP]

            #6
            Re: How do I implement an interface with VB.Net?

            Jim,
            [color=blue]
            > Thank you for that most informative and helpful response.
            >
            >[/color]
            I am glad that the help from Willy did help you, I was ready to make a reply
            however now I see that it is not needed anymore.

            Because of your answer I assume that the most of us think about it this way.

            Cor


            Comment

            • Jim

              #7
              Re: How do I implement an interface with VB.Net?

              On it's way...

              Thanks!

              "W.G. Ryan - MVP" <WilliamRyan@no spam.gmail.com> wrote in message
              news:eBZm0aYBGH A.3400@TK2MSFTN GP10.phx.gbl...[color=blue]
              > Jim - if you would, shoot me an email to WilliamRyan at gmail dotcom - I
              > answered your question briefly below, but I have some material that you
              > will probably find helpful - it's too much to simply post but if you'll
              > shoot me a private email, I'll do what I can to help.
              > "Jim" <reply@groups.p lease> wrote in message
              > news:NAWpf.1553 6$kP5.11086@big news5.bellsouth .net...[color=green]
              >> Thank you for that most informative and helpful response.
              >>
              >>
              >> "Willy Denoyette [MVP]" <willy.denoyett e@telenet.be> wrote in message
              >> news:eMUYXUYBGH A.636@TK2MSFTNG P10.phx.gbl...[color=darkred]
              >>>
              >>> "Jim" <reply@groups.p lease> wrote in message
              >>> news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...
              >>>>I am using VB.Net 2.0 and I am completely new to the concept of
              >>>>implementin g interfaces. Can anyone explain "implementi ng interfaces"
              >>>>to me and perhaps give me an example of implementing an interface that
              >>>>would help me implement the IIneternetSecur ityManager interface
              >>>>mentioned under "Creating a Customized URL Security Manager" on
              >>>>http://msdn.microsoft.com/library/de...#SecurityZones
              >>>>and mentioned under "Download Control" on
              >>>>http://msdn.microsoft.com/library/de...nload_Control?
              >>>>
              >>>> This would help me a great understand implementing interfaces and I
              >>>> could then implement a few more for my company's internal webbrowser.
              >>>>
              >>>> Thanks for your help!
              >>>>
              >>>
              >>>
              >>> Why cross-post to a bunch of non appropriate NG's, please restrict your
              >>> postings to the vb NG only.
              >>>
              >>> Willy.
              >>>
              >>>[/color]
              >>
              >>[/color]
              >
              >[/color]


              Comment

              • Jim

                #8
                Re: How do I implement an interface with VB.Net?

                That does help.

                But how do I know what the object's interface looks like and how to
                replicate it in VB.Net?

                For example, the IInternetSecuri tyManager::Proc essUrlAction Method located
                at
                http://msdn.microsoft.com/library/de...#SecurityZones.
                How would this interface be implemented?


                "W.G. Ryan - MVP" <WilliamRyan@no spam.gmail.com> wrote in message
                news:%238TnsYYB GHA.2320@TK2MSF TNGP11.phx.gbl. ..[color=blue]
                > Jim:
                >
                > In .NET we don't have multiple inheritance but by using interfaces, you
                > can get to the same place by and large. If I have an interface, then the
                > compiler knows that each fo the methods and properties must exist in the
                > class - it can count on them being there. So in it's simplest form,
                > implementing an interface is simply adding a property and method to your
                > class for each one in the interface. That way you can do this....
                >
                > IList myObject = new ObjectThatImple mentsIList();
                > myObject.Item(0 ) ; //b/c IList has Item
                >
                > Now, by doing this, you can take an IList object as a paramater and then
                > pass in anything that implements IList b/c it effectively "is" an IList
                > object.
                >
                > Does this help?
                >
                > "Jim" <reply@groups.p lease> wrote in message
                > news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=green]
                >>I am using VB.Net 2.0 and I am completely new to the concept of
                >>implementin g interfaces. Can anyone explain "implementi ng interfaces" to
                >>me and perhaps give me an example of implementing an interface that would
                >>help me implement the IIneternetSecur ityManager interface mentioned under
                >>"Creating a Customized URL Security Manager" on
                >>http://msdn.microsoft.com/library/de...#SecurityZones
                >>and mentioned under "Download Control" on
                >>http://msdn.microsoft.com/library/de...nload_Control?
                >>
                >> This would help me a great understand implementing interfaces and I could
                >> then implement a few more for my company's internal webbrowser.
                >>
                >> Thanks for your help!
                >>[/color]
                >
                >[/color]


                Comment

                • RCS

                  #9
                  Re: How do I implement an interface with VB.Net?

                  Yikes.

                  It might be helpful if you stuck to one question at a time and sent it to
                  one newsgroup. Crossposting is bad.

                  Interfaces require a bit of explanation. If you are not familiar, just ask.

                  HOW to implement them in VB (sorry to the other newsgroups), you do
                  something like this:

                  Public Class MyClass
                  Implements System.IFormatt able

                  End Class

                  in C#, it's something like this:

                  public class MyClass : System.IFormatt able
                  {
                  }

                  You will then obviously need to implement the members that the interface
                  describes.. hope that helps



                  "Jim" <reply@groups.p lease> wrote in message
                  news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=blue]
                  >I am using VB.Net 2.0 and I am completely new to the concept of
                  >implementing interfaces. Can anyone explain "implementi ng interfaces" to
                  >me and perhaps give me an example of implementing an interface that would
                  >help me implement the IIneternetSecur ityManager interface mentioned under
                  >"Creating a Customized URL Security Manager" on
                  >http://msdn.microsoft.com/library/de...#SecurityZones
                  >and mentioned under "Download Control" on
                  >http://msdn.microsoft.com/library/de...nload_Control?
                  >
                  > This would help me a great understand implementing interfaces and I could
                  > then implement a few more for my company's internal webbrowser.
                  >
                  > Thanks for your help!
                  >[/color]


                  Comment

                  • RCS

                    #10
                    Re: How do I implement an interface with VB.Net?

                    If I didn't know any better, these look like C++ API's and I couldn't find a
                    ..NET implementation of them.. so I would guess (based on a cursory glance)
                    that there isn't an easy way to use this functionality in VB without
                    wrapping it first..

                    "Jim" <reply@groups.p lease> wrote in message
                    news:j4Xpf.1554 2$kP5.3833@bign ews5.bellsouth. net...[color=blue]
                    > That does help.
                    >
                    > But how do I know what the object's interface looks like and how to
                    > replicate it in VB.Net?
                    >
                    > For example, the IInternetSecuri tyManager::Proc essUrlAction Method located
                    > at
                    > http://msdn.microsoft.com/library/de...#SecurityZones.
                    > How would this interface be implemented?
                    >
                    >
                    > "W.G. Ryan - MVP" <WilliamRyan@no spam.gmail.com> wrote in message
                    > news:%238TnsYYB GHA.2320@TK2MSF TNGP11.phx.gbl. ..[color=green]
                    >> Jim:
                    >>
                    >> In .NET we don't have multiple inheritance but by using interfaces, you
                    >> can get to the same place by and large. If I have an interface, then the
                    >> compiler knows that each fo the methods and properties must exist in the
                    >> class - it can count on them being there. So in it's simplest form,
                    >> implementing an interface is simply adding a property and method to your
                    >> class for each one in the interface. That way you can do this....
                    >>
                    >> IList myObject = new ObjectThatImple mentsIList();
                    >> myObject.Item(0 ) ; //b/c IList has Item
                    >>
                    >> Now, by doing this, you can take an IList object as a paramater and then
                    >> pass in anything that implements IList b/c it effectively "is" an IList
                    >> object.
                    >>
                    >> Does this help?
                    >>
                    >> "Jim" <reply@groups.p lease> wrote in message
                    >> news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=darkred]
                    >>>I am using VB.Net 2.0 and I am completely new to the concept of
                    >>>implementi ng interfaces. Can anyone explain "implementi ng interfaces" to
                    >>>me and perhaps give me an example of implementing an interface that would
                    >>>help me implement the IIneternetSecur ityManager interface mentioned under
                    >>>"Creating a Customized URL Security Manager" on
                    >>>http://msdn.microsoft.com/library/de...#SecurityZones
                    >>>and mentioned under "Download Control" on
                    >>>http://msdn.microsoft.com/library/de...nload_Control?
                    >>>
                    >>> This would help me a great understand implementing interfaces and I
                    >>> could then implement a few more for my company's internal webbrowser.
                    >>>
                    >>> Thanks for your help!
                    >>>[/color]
                    >>
                    >>[/color]
                    >
                    >[/color]


                    Comment

                    • Jim

                      #11
                      Re: How do I implement an interface with VB.Net?

                      Do you mean that you need to write a wrapper in C++ to expose this
                      functionality in VB.Net?


                      "RCS" <rseder@gmail.c om> wrote in message
                      news:EiXpf.4188 $fO5.2969@newss vr33.news.prodi gy.com...[color=blue]
                      > If I didn't know any better, these look like C++ API's and I couldn't find
                      > a .NET implementation of them.. so I would guess (based on a cursory
                      > glance) that there isn't an easy way to use this functionality in VB
                      > without wrapping it first..
                      >
                      > "Jim" <reply@groups.p lease> wrote in message
                      > news:j4Xpf.1554 2$kP5.3833@bign ews5.bellsouth. net...[color=green]
                      >> That does help.
                      >>
                      >> But how do I know what the object's interface looks like and how to
                      >> replicate it in VB.Net?
                      >>
                      >> For example, the IInternetSecuri tyManager::Proc essUrlAction Method
                      >> located at
                      >> http://msdn.microsoft.com/library/de...#SecurityZones.
                      >> How would this interface be implemented?
                      >>
                      >>
                      >> "W.G. Ryan - MVP" <WilliamRyan@no spam.gmail.com> wrote in message
                      >> news:%238TnsYYB GHA.2320@TK2MSF TNGP11.phx.gbl. ..[color=darkred]
                      >>> Jim:
                      >>>
                      >>> In .NET we don't have multiple inheritance but by using interfaces, you
                      >>> can get to the same place by and large. If I have an interface, then
                      >>> the compiler knows that each fo the methods and properties must exist in
                      >>> the class - it can count on them being there. So in it's simplest form,
                      >>> implementing an interface is simply adding a property and method to your
                      >>> class for each one in the interface. That way you can do this....
                      >>>
                      >>> IList myObject = new ObjectThatImple mentsIList();
                      >>> myObject.Item(0 ) ; //b/c IList has Item
                      >>>
                      >>> Now, by doing this, you can take an IList object as a paramater and then
                      >>> pass in anything that implements IList b/c it effectively "is" an IList
                      >>> object.
                      >>>
                      >>> Does this help?
                      >>>
                      >>> "Jim" <reply@groups.p lease> wrote in message
                      >>> news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...
                      >>>>I am using VB.Net 2.0 and I am completely new to the concept of
                      >>>>implementin g interfaces. Can anyone explain "implementi ng interfaces"
                      >>>>to me and perhaps give me an example of implementing an interface that
                      >>>>would help me implement the IIneternetSecur ityManager interface
                      >>>>mentioned under "Creating a Customized URL Security Manager" on
                      >>>>http://msdn.microsoft.com/library/de...#SecurityZones
                      >>>>and mentioned under "Download Control" on
                      >>>>http://msdn.microsoft.com/library/de...nload_Control?
                      >>>>
                      >>>> This would help me a great understand implementing interfaces and I
                      >>>> could then implement a few more for my company's internal webbrowser.
                      >>>>
                      >>>> Thanks for your help!
                      >>>>
                      >>>
                      >>>[/color]
                      >>
                      >>[/color]
                      >
                      >[/color]


                      Comment

                      • Jim

                        #12
                        Re: How do I implement an interface with VB.Net?


                        "RCS" <rseder@gmail.c om> wrote in message
                        news:VbXpf.4186 $fO5.264@newssv r33.news.prodig y.com...[color=blue]
                        > Yikes.
                        >
                        > It might be helpful if you stuck to one question at a time and sent it to
                        > one newsgroup. Crossposting is bad.[/color]

                        I only cross-posted because I knew that C/C++/C# programmers may hae the
                        information that I seek. Posting to the VB.Net ng could work, but since I
                        am talking about C++ APIs, I thought the groups selected were appropriate.

                        And, I have been taken to task for posting the same questions in separate
                        posts to separate groups because it evidentially eats up bandwidth for some
                        USENET users that pay for bandwidth usage.

                        In fact, based on those conversations, I thought that I was doing people a
                        favor by sending the question to several ngs at once rather than posting
                        separately to the ngs.

                        I don't know......I am just seeking knowledge wherever I can find it. Sorry
                        if I stepped on any toes in the process.



                        Comment

                        • RCS

                          #13
                          Re: How do I implement an interface with VB.Net?

                          Well, basically - you'd need to make a .NET assembly that has this
                          functionality in it, so it will be easily accessible via VB. VB.NET can only
                          easily/natively see .NET and COM components. It can't see non-.NET or native
                          Win32 API's, without some coding.

                          There are almost always ways to use Win32 API's in non-C++ languages, but it
                          tends to be clumsy. Bottom line, if you know C++ - write a managed/.NET
                          assembly that exposes this functionality.. or, try to write a VB.NET
                          assembly that uses these API's directly. There will likely be no
                          documentation and nowhere to turn, except newsgroups, if you get stuck..

                          Good luck..

                          "Jim" <reply@groups.p lease> wrote in message
                          news:AiXpf.1555 1$kP5.11135@big news5.bellsouth .net...[color=blue]
                          > Do you mean that you need to write a wrapper in C++ to expose this
                          > functionality in VB.Net?
                          >
                          >
                          > "RCS" <rseder@gmail.c om> wrote in message
                          > news:EiXpf.4188 $fO5.2969@newss vr33.news.prodi gy.com...[color=green]
                          >> If I didn't know any better, these look like C++ API's and I couldn't
                          >> find a .NET implementation of them.. so I would guess (based on a cursory
                          >> glance) that there isn't an easy way to use this functionality in VB
                          >> without wrapping it first..
                          >>
                          >> "Jim" <reply@groups.p lease> wrote in message
                          >> news:j4Xpf.1554 2$kP5.3833@bign ews5.bellsouth. net...[color=darkred]
                          >>> That does help.
                          >>>
                          >>> But how do I know what the object's interface looks like and how to
                          >>> replicate it in VB.Net?
                          >>>
                          >>> For example, the IInternetSecuri tyManager::Proc essUrlAction Method
                          >>> located at
                          >>> http://msdn.microsoft.com/library/de...#SecurityZones.
                          >>> How would this interface be implemented?
                          >>>
                          >>>
                          >>> "W.G. Ryan - MVP" <WilliamRyan@no spam.gmail.com> wrote in message
                          >>> news:%238TnsYYB GHA.2320@TK2MSF TNGP11.phx.gbl. ..
                          >>>> Jim:
                          >>>>
                          >>>> In .NET we don't have multiple inheritance but by using interfaces, you
                          >>>> can get to the same place by and large. If I have an interface, then
                          >>>> the compiler knows that each fo the methods and properties must exist
                          >>>> in the class - it can count on them being there. So in it's simplest
                          >>>> form, implementing an interface is simply adding a property and method
                          >>>> to your class for each one in the interface. That way you can do
                          >>>> this....
                          >>>>
                          >>>> IList myObject = new ObjectThatImple mentsIList();
                          >>>> myObject.Item(0 ) ; //b/c IList has Item
                          >>>>
                          >>>> Now, by doing this, you can take an IList object as a paramater and
                          >>>> then pass in anything that implements IList b/c it effectively "is" an
                          >>>> IList object.
                          >>>>
                          >>>> Does this help?
                          >>>>
                          >>>> "Jim" <reply@groups.p lease> wrote in message
                          >>>> news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...
                          >>>>>I am using VB.Net 2.0 and I am completely new to the concept of
                          >>>>>implementi ng interfaces. Can anyone explain "implementi ng interfaces"
                          >>>>>to me and perhaps give me an example of implementing an interface that
                          >>>>>would help me implement the IIneternetSecur ityManager interface
                          >>>>>mentione d under "Creating a Customized URL Security Manager" on
                          >>>>>http://msdn.microsoft.com/library/de...#SecurityZones
                          >>>>>and mentioned under "Download Control" on
                          >>>>>http://msdn.microsoft.com/library/de...nload_Control?
                          >>>>>
                          >>>>> This would help me a great understand implementing interfaces and I
                          >>>>> could then implement a few more for my company's internal webbrowser.
                          >>>>>
                          >>>>> Thanks for your help!
                          >>>>>
                          >>>>
                          >>>>
                          >>>
                          >>>[/color]
                          >>
                          >>[/color]
                          >
                          >[/color]


                          Comment

                          • W.G. Ryan - MVP

                            #14
                            Re: How do I implement an interface with VB.Net?

                            Cor - I think it's safe to answer if you want to give it a shot - I suspect
                            Jim's answer may have been polite sarcasm.
                            "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
                            news:uNUrXkYBGH A.3604@TK2MSFTN GP09.phx.gbl...[color=blue]
                            > Jim,
                            >[color=green]
                            >> Thank you for that most informative and helpful response.
                            >>
                            >>[/color]
                            > I am glad that the help from Willy did help you, I was ready to make a
                            > reply however now I see that it is not needed anymore.
                            >
                            > Because of your answer I assume that the most of us think about it this
                            > way.
                            >
                            > Cor
                            >[/color]


                            Comment

                            • W.G. Ryan - MVP

                              #15
                              Re: How do I implement an interface with VB.Net?

                              Well it depejnds on the interface. If you're in the IDE, you can find out
                              the methods by hitting Tab after you use the Implements InterfaceName - this
                              will shell out all the methods for you. To implement the interface,creat e
                              your class and then use Implements and then the interface name, when you
                              hit tab, it will fill in the method stubs for you.
                              "Jim" <reply@groups.p lease> wrote in message
                              news:j4Xpf.1554 2$kP5.3833@bign ews5.bellsouth. net...[color=blue]
                              > That does help.
                              >
                              > But how do I know what the object's interface looks like and how to
                              > replicate it in VB.Net?
                              >
                              > For example, the IInternetSecuri tyManager::Proc essUrlAction Method located
                              > at
                              > http://msdn.microsoft.com/library/de...#SecurityZones.
                              > How would this interface be implemented?
                              >
                              >
                              > "W.G. Ryan - MVP" <WilliamRyan@no spam.gmail.com> wrote in message
                              > news:%238TnsYYB GHA.2320@TK2MSF TNGP11.phx.gbl. ..[color=green]
                              >> Jim:
                              >>
                              >> In .NET we don't have multiple inheritance but by using interfaces, you
                              >> can get to the same place by and large. If I have an interface, then the
                              >> compiler knows that each fo the methods and properties must exist in the
                              >> class - it can count on them being there. So in it's simplest form,
                              >> implementing an interface is simply adding a property and method to your
                              >> class for each one in the interface. That way you can do this....
                              >>
                              >> IList myObject = new ObjectThatImple mentsIList();
                              >> myObject.Item(0 ) ; //b/c IList has Item
                              >>
                              >> Now, by doing this, you can take an IList object as a paramater and then
                              >> pass in anything that implements IList b/c it effectively "is" an IList
                              >> object.
                              >>
                              >> Does this help?
                              >>
                              >> "Jim" <reply@groups.p lease> wrote in message
                              >> news:qfWpf.1552 8$kP5.13164@big news5.bellsouth .net...[color=darkred]
                              >>>I am using VB.Net 2.0 and I am completely new to the concept of
                              >>>implementi ng interfaces. Can anyone explain "implementi ng interfaces" to
                              >>>me and perhaps give me an example of implementing an interface that would
                              >>>help me implement the IIneternetSecur ityManager interface mentioned under
                              >>>"Creating a Customized URL Security Manager" on
                              >>>http://msdn.microsoft.com/library/de...#SecurityZones
                              >>>and mentioned under "Download Control" on
                              >>>http://msdn.microsoft.com/library/de...nload_Control?
                              >>>
                              >>> This would help me a great understand implementing interfaces and I
                              >>> could then implement a few more for my company's internal webbrowser.
                              >>>
                              >>> Thanks for your help!
                              >>>[/color]
                              >>
                              >>[/color]
                              >
                              >[/color]


                              Comment

                              Working...