ServiceDefinition Constructor (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.

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

Syntax

'Declaration
Public Sub New ( _
    serviceType As String, _
    identifier As Guid, _
    displayName As String, _
    relativePath As String, _
    relativeToSetting As RelativeToSetting, _
    description As String, _
    toolId As String _
)
public ServiceDefinition(
    string serviceType,
    Guid identifier,
    string displayName,
    string relativePath,
    RelativeToSetting relativeToSetting,
    string description,
    string toolId
)
public:
ServiceDefinition(
    String^ serviceType, 
    Guid identifier, 
    String^ displayName, 
    String^ relativePath, 
    RelativeToSetting relativeToSetting, 
    String^ description, 
    String^ toolId
)
new : 
        serviceType:string * 
        identifier:Guid * 
        displayName:string * 
        relativePath:string * 
        relativeToSetting:RelativeToSetting * 
        description:string * 
        toolId:string -> ServiceDefinition
public function ServiceDefinition(
    serviceType : String, 
    identifier : Guid, 
    displayName : String, 
    relativePath : String, 
    relativeToSetting : RelativeToSetting, 
    description : String, 
    toolId : String
)

Parameters

  • serviceType
    Type: System.String

    The service type of the definition to create.

  • identifier
    Type: System.Guid

    The unique identifier for this instance.

  • displayName
    Type: System.String

    The display name for the service definition.

  • relativePath
    Type: System.String

    The relative path for the service definition.

  • relativeToSetting
    Type: Microsoft.TeamFoundation.Framework.Common.RelativeToSetting

    The relative setting for the service definition. If this is anything other than FullyQualified, the relativePath must not be null. If this is FullyQualified, the relativePath must be null. It is with these two values together with the [LocationService] service definition location mapping for an access mapping that relative paths are generated.

  • description
    Type: System.String

    Text that documents or describes what this service is or how it is used.

  • toolId
    Type: System.String

    The category of "tools" that this service is a part of. This corresponds to the old registration tool ID.

.NET Framework Security

See Also

Reference

ServiceDefinition Class

ServiceDefinition Overload

Microsoft.TeamFoundation.Framework.Server Namespace