Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting calling method name?
Message
De
26/02/2013 15:16:37
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01566974
Message ID:
01566983
Vues:
67
Warning: OFF-TOPIC

>Hi everybody,
>I have a method which I call from another method. I am wondering whether is
> a way to get that calling method's name in the current method?

Warning: OFF-TOPIC

Visual FreePro opens this information up at runtime. It supports this with a new caller object. Using caller.name will reference the calling function's name (as was known at compile time). And its parent can be accessed via caller.caller.name, etc. A new object called _program is also introduced, which grants you access all running threads as well as the entire hierarchy of running functions. And a new object called _thread grants access to terminate, suspend, resume and generally coordinate all other running threads. A function called _thread.snapshot lets you save an xml-like file of everything running currently on the system.

Warning: OFF-TOPIC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform