[libRETS-users] Using vb.net - successful login, now how to get metadata?

Keith T. Garner kgarner at crt.realtors.org
Wed Jan 3 12:15:37 CST 2007


Tech at ZolMedia.com wrote:
> I've used the Visual Basic.net project reference in this message:
> http://mail.crt.realtors.org/pipermail/librets-users/2006-August/000460.html
>  
> I've successfully logged in using this vb.net code:
> 
>     Dim session As New librets.RetsSession(strURL)
>     If (session.Login(strUsername, strPassword)) Then...
> 
> Then, I want to get the metadata so that I can know what's query'able.
>  
> I assume I should get it from session.GetMetadata but can't figure out how.
>  
> I can't determine what datatype it should return. Any vb.net folks out
> there who can help?

I'm not a VB.net guy, but I can point you in a few places.  The first would
be to the metadata example code in C#.  For the most part, you could
probably translate it to VB.net a line at a time, but it does show you the
types that will be used.
http://code.crt.realtors.org/projects/librets/file/librets/trunk/project/swig/csharp/Metadata.cs

The other thing to look at would be the C++ API docs.  Most of the types are
directly translated to the same name in the .NET wrapper, so it'll show you
most of what you need to know, or at least a close enough name for
VisualStudio's completion to take over.  Those are at
http://www.crt.realtors.org/projects/rets/librets/documentation/api/

Keith

-- 
  Keith T. Garner - Managing Director - Center for REALTOR® Technology
   kgarner at realtors.org - 312-329-3294 - http://blog.realtors.org/crt




More information about the libRETS-users mailing list