ServiceDefinition Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

System.Object
  Microsoft.TeamFoundation.Framework.Server.ServiceDefinition

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

[CallOnSerializationAttribute("PrepareForWebServiceSerialization")]
[ClassVisibilityAttribute(ClientVisibility.Public, ClientVisibility.Internal)]
public class ServiceDefinition

The ServiceDefinition type exposes the following members.

  NameDescription
Public methodServiceDefinition()
Public methodServiceDefinition(String, Guid, String, String, RelativeToSetting, String, String)Factory method for creating service definitions. Location Mappings can be added by means of the [IServiceDefinition.AddLocationMapping()] function. Note that this method does not register a service definition.
Top

  NameDescription
Public propertyDescriptionText that documents or describes what this service is or how it is used.
Public propertyDisplayNameThe display name for this service definition.
Public propertyIdentifierThe identifier for this instance of this service type.Together a [ServiceType] and an [Identifier] uniquely identify a service definition.
Public propertyIsSingleton Obsolete. If [true], this is the only service definition with this type. If this service definition is about to be registered and this is [true], no service definitions with this service type can already be registered. If this definition is being updated so that it is a singleton definition, it must be the only definition registered. Once a singleton definition is registered, no other service definitions with the given service type can be registered.
Public propertyLocationMappingsThe location mappings that define where this service lives for given access mappings for [FullyQualified] service definitions. For any service definition that is relative, this will always be empty.
Public propertyRelativePathThe relative path for this service definition. If the [RelativeToSetting] is [FullyQualified], this value must be null. Otherwise it must contain the part of the path that is relative to whatever the relative setting is for the service. If the caller changes this value, this definition will contain incorrect values for its [LocationMappings] and will return incorrect locations for calls to [LocationForZone] until it is passed back into the [LocationServiceAPI].
Public propertyRelativeToSettingThe tier of [TeamFoundationServer] that this service is relative to.This, together with the [RelativePath] and the location service definition entry for the access mapping, is used to determine the final location of services that have a setting other than [FullyQualified]. If the caller changes this value, this definition will contain incorrect values for its [LocationMappings] and will return incorrect locations for calls to [LocationForZone] until it is passed back into the [LocationServiceAPI].
Public propertyRelativeToSettingValue
Public propertyServiceOwner
Public propertyServiceTypeThis is the name of the type of the service that is being defined. Note that multiple services can have the same [ServiceType]. Together a [ServiceType] and an [Identifier] uniquely identify a service definition.
Public propertyToolIdThe category of "tools" that this service is a part of. This corresponds to the old registration tool ID.
Top

  NameDescription
Public methodAddLocationMappingAdds a location mapping for the provided access mapping and location to the service definition. Note that if a mapping already exists for the provided access mapping, it will be overwritten.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from 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 methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLocationMappingReturns the [LocationMapping] for the [AccessMapping] provided or null if this [ServiceDefinition] does not have a [LocationMapping] for the provided [AccessMapping]. This function will always return null if it is called on a non-relative [ServiceDefinition].
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveLocationMappingRemoves the location mapping for the access mapping provided. Note that access mappings are determined to be equal based on their moniker.
Public methodToString (Overrides Object.ToString().)
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: