다음을 통해 공유


IOD: Wouldn't it be cool if..

Usefull code snippets, like the one that Chee Seong writes below, where automatically added to your local snippet collection if you coded against TFS?

Since I cannot specify "Display Name" in the To property for the MailMessage object, I need to somehow convert the "Display Name" to "Account Name".
There is basically 2 ways to do this:
(a) Query Active Directory.
(b) Query TFS

Below is a sample on how to retrieve "Account Name" from "Display Name" against TFS:

Source: Chee Seong's WebLog : TFS: How do you convert Display Name to Account Name?