ServicingContext Class
TOC
Collapse the table of content
Expand the table of content

ServicingContext Class

System.Object
  Microsoft.TeamFoundation.Framework.Server.ServicingContext

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

public class ServicingContext : IDisposable

The ServicingContext type exposes the following members.

  NameDescription
Public methodAddItemIfNotDefinedAdd an item if it does not already exist.
Public methodAddTokenIfNotDefinedSetServicingToken is used to set a name value pair that is replaced in the step data before the step is executed. When calling this method only supply the token name itself. Tokens are referenced in servicing step data by including "$$" before and after the token name. ex. Set with "ExampleToken", step data contains "$$ExampleToken$$". Tokens are compared with a case-insensitive comparison, but replaced case-sensitively.
Public methodCreateComponent<TComponent>Creates a component that can be used to communicate to the current version of the database.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodError
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 methodGetConnectionStringGets connection string for the specified logical database. If connection string for the specified category is not defined and fallbackOnFramework is true, Framework connection string is returned.
Public methodGetConnectionStrings
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetItem<T>
Public methodGetRequiredToken
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodLog
Public methodLogInfo(String)
Public methodLogInfo(String, Object[])
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodParseToken<T>
Public methodReplaceResources
Public methodReplaceTokens
Public methodSkipChildren
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetItem<T>Attempts to retrieve an item from the item bag.
Public methodTryGetTokenAttempts to retrieve a token from the token bag.
Public methodWarn
Top

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:
© 2016 Microsoft