# Sunday, September 24, 2006

Here is a simple example of how to connect to a Team Foundation Server and display some of its properties.

To start we need to fire up VS 2005 and create a new console application.

Now that we have a new project we need to add a reference to Microsoft.TeamFoundation.Client.

Now we can access the TeamFoundationServer object. To create an instance of the object we will use the TeamFoundationServerFactory, we are using the factory so that we create a cache version of the object for subsequence calls.

 TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer("FriendlyNameOfYourTFSServerOrURL");

Now lets display some data:

Console.WriteLine("The Authenticated User is: {0}", tfs.AuthenticatedUserDisplayName);
Console.WriteLine("TeamFoundationServer Name: {0}", tfs.Name);
Console.WriteLine("TeamFoundationServer Object GUID: {0}", tfs.InstanceId);
Console.ReadLine();

Here is the OutPut:

Thats it! Very simple and fun.

 

Ed K.

posted on Sunday, September 24, 2006 9:52:53 PM (Central Standard Time, UTC-06:00)  #    Comments [0] Trackback
Related posts:
Enter the Coolest Team System Gadget Contest!
New Visual Studio Extensibility Book Available
New Position
Third-Party .NET Component Suite Comparison
IEventService: Filter Expressions, Event Types
TFS Authentication
Tracked by:
"sweepstakes may 2006" (sweepstakes may 2006) [Trackback]
"free videos female ejaculation" (free videos female ejaculation) [Trackback]
"female escorts in chattanooga" (female escorts in chattanooga) [Trackback]
"lets talk dirty" (lets talk dirty) [Trackback]
"welding hoods" (welding hoods) [Trackback]
"water stop rubber gloves" (water stop rubber gloves) [Trackback]
"college dorm nudity" (college dorm nudity) [Trackback]
"jeremy paxman interview" (jeremy paxman interview) [Trackback]
"joplin missouri" (joplin missouri) [Trackback]
"evil deeds" (evil deeds) [Trackback]
"latina girls going wild" (latina girls going wild) [Trackback]
"doxycycline used for" (doxycycline used for) [Trackback]
"nude on the boat" (nude on the boat) [Trackback]
"dirty bear sex gallery grizzly" (dirty bear sex gallery grizzly) [Trackback]
"garmin 72 handheld gps" (garmin 72 handheld gps) [Trackback]
"mother fuck" (mother fuck) [Trackback]
"italian amateur porn" (italian amateur porn) [Trackback]
"naturist friends gallery" (naturist friends gallery) [Trackback]
"endodontic infections" (endodontic infections) [Trackback]
"nastiest whore in porn" (nastiest whore in porn) [Trackback]
"Houston act software training" (Houston act software training) [Trackback]
"us citizenship questions" (us citizenship questions) [Trackback]
"C2 Constellation" (C2 Constellation) [Trackback]
"minor league baseball" (minor league baseball) [Trackback]
"dirty lilly sucking" (dirty lilly sucking) [Trackback]
"tae kwon do winchester va" (tae kwon do winchester va) [Trackback]
"myspace whore me button" (myspace whore me button) [Trackback]
"dating gay" (dating gay) [Trackback]
"amateur girls kissing" (amateur girls kissing) [Trackback]
"heavyweight vinyl envelopes" (heavyweight vinyl envelopes) [Trackback]
"buy used car" (buy used car) [Trackback]
"hummer H2 SUT" (hummer H2 SUT) [Trackback]
"disneyland ca" (disneyland ca) [Trackback]
"Angina Symptoms" (Angina Symptoms) [Trackback]
"traffic ticket texas" (traffic ticket texas) [Trackback]
"final fantasy animated gifs" (final fantasy animated gifs) [Trackback]
"no teletrack or verification payday loans" (no teletrack or verification payday... [Trackback]
"candida albicans alcoholism" (candida albicans alcoholism) [Trackback]
Comments are closed.