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.StringThe service type of the definition to create.
identifier
Type: System.GuidThe unique identifier for this instance.
displayName
Type: System.StringThe display name for the service definition.
relativePath
Type: System.StringThe relative path for the service definition.
relativeToSetting
Type: Microsoft.TeamFoundation.Framework.Common.RelativeToSettingThe 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.StringText that documents or describes what this service is or how it is used.
toolId
Type: System.StringThe category of "tools" that this service is a part of. This corresponds to the old registration tool ID.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.