Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADSI Objects
Message
 
 
À
29/03/2001 15:07:34
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00488611
Message ID:
00490055
Vues:
22
>There are only 2 parameters (according to the help), the first is the file name or moniker and the second is the class name.
>

The help must not be updated with VFP 7 topics. I thought it was (at least that's what I thought I saw in Beta 1).

>How do I found out what properties the providers support?
>
>
ouser = Getobject("WinNT://MyComputer/Myuser,user")
oschema = GetObject(ouser.Schema)

if type("oschema.MandatoryProperties") <> "U" then
   for each cProperty in oschema.MandatoryProperties
      ? cProperty
   endfor
endif

if type("oschema.OptionalProperties") <> "U" then
   for each cProperty in oschema.OptionalProperties
      ? cProperty
   endfor
endif
You can do this for each provider. I don't know of a place where they are individually documented, sorry.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform