Export (0) Print
Expand All

TeamFoundationServer Class

Note: This API is now obsolete.

Represents a connection to a server that is running Team Foundation Server.

System.Object
  Microsoft.TeamFoundation.Client.TeamFoundationServer

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

public class TeamFoundationServer implements IServiceProvider, IDisposable

The TeamFoundationServer type exposes the following members.

  NameDescription
Public methodTeamFoundationServer(String)Initializes a new TeamFoundationServer object that is associated with the specified URL.
Public methodTeamFoundationServer(Uri)Initializes a new TeamFoundationServer object that is associated with the specified URI.
Public methodTeamFoundationServer(RegisteredProjectCollection)Initializes a new TeamFoundationServer object that is associated with the server that is described by the specified RegisteredProjectCollection.
Public methodTeamFoundationServer(String, ICredentialsProvider)Initializes a new TeamFoundationServer object that is associated with the specified URL and credentials provider.
Public methodTeamFoundationServer(String, ICredentials)Initializes a new TeamFoundationServer object that is associated with the specified URL and credentials.
Public methodTeamFoundationServer(Uri, ICredentialsProvider)Initializes a new TeamFoundationServer object that is associated with the specified URI and credentials provider.
Public methodTeamFoundationServer(Uri, ICredentials)Initializes a new TeamFoundationServer object that is associated with the specified uniform resource identifier (URI) and credentials.
Public methodTeamFoundationServer(String, ICredentials, ICredentialsProvider)Initializes a new TeamFoundationServer object that is associated with the specified URL and credentials.
Public methodTeamFoundationServer(Uri, ICredentials, ICredentialsProvider)Initializes a new TeamFoundationServer object that is associated with the specified URI, credentials and credentials provider.
Public methodTeamFoundationServer(RegisteredProjectCollection, ICredentials, ICredentialsProvider)Initializes a new TeamFoundationServer object that is associated with the server that is described by the specified RegisteredProjectCollection, credentials, and credentials provider.
Top

  NameDescription
Public propertyAuthenticatedUserDisplayNameGets the display name of the authenticated user.
Public propertyAuthenticatedUserIdentityGets the authenticated user's identity.
Public propertyAuthenticatedUserNameGets the authenticated user name.
Public propertyStatic memberClientCacheDirectoryGets the directory that contains the client cache files.
Public propertyClientCacheDirectoryForInstanceGets the directory to use when data is cached from the server.
Public propertyStatic memberClientSettingsDirectoryGets or sets the directory that contains the client settings files.
Public propertyCredentialsGets the credentials for this TeamFoundationServer object.
Public propertyCultureGets or sets the culture to use for this TeamFoundationServer object.
Public propertyHasAuthenticatedGets a flag that describes whether this TeamFoundationServer object has successfully authenticated.
Public propertyInstanceIdGets the GUID that uniquely identifies the server.
Public propertyNameGets the name of the server that is running Team Foundation Server.
Public propertySessionIdGets the GUID that identifies this TeamFoundationServer object to the server and is recorded in the activity log of the server.
Public propertyTfsTeamProjectCollectionGets the TfsTeamProjectCollection instance that is associated with this TeamFoundationServer object.
Public propertyTimeZoneGets or sets the time zone.
Public propertyUriGets the URI of the current server that is running Team Foundation Server.
Top

  NameDescription
Public methodAuthenticateAuthenticates the connection with the server.
Public methodDisposeNotifies interested objects of disposal and disposes this object.
Public methodEnsureAuthenticatedAuthenticates the connection, if it was not previously authenticated.
Public methodEqualsChecks to see whether this TeamFoundationServer object is equal to the specified object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets the hash code for this object. (Overrides Object.GetHashCode().)
Public methodGetService(Type)Gets the specified service.
Public methodGetService(T)()Gets the specified service.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringGets the name of this TeamFoundationServer object. (Overrides Object.ToString().)
Top

  NameDescription
Public eventCredentialsChangedThis event occurs when the credentials of the TeamFoundationServer object change.
Top

  NameDescription
Public operatorStatic memberEqualityChecks to see if the specified TeamFoundationServer objects are equal.
Public operatorStatic memberInequalityChecks to see whether the specified TeamFoundationServer objects are not equal.
Top

This class is obsolete. Use the TfsTeamProjectCollection or TfsConfigurationServer classes instead.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft