共用方式為


ServiceDefinition Constructor (String, Guid, String, String, RelativeToSetting, String, String, List<LocationMapping>, Guid)

Namespace:  Microsoft.VisualStudio.Services.Location
Assembly:  Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.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, _
    locationMappings As List(Of LocationMapping), _
    serviceOwner As Guid _
)
public ServiceDefinition(
    string serviceType,
    Guid identifier,
    string displayName,
    string relativePath,
    RelativeToSetting relativeToSetting,
    string description,
    string toolId,
    List<LocationMapping> locationMappings,
    Guid serviceOwner
)
public:
ServiceDefinition(
    String^ serviceType, 
    Guid identifier, 
    String^ displayName, 
    String^ relativePath, 
    RelativeToSetting relativeToSetting, 
    String^ description, 
    String^ toolId, 
    List<LocationMapping^>^ locationMappings, 
    Guid serviceOwner
)
new : 
        serviceType:string * 
        identifier:Guid * 
        displayName:string * 
        relativePath:string * 
        relativeToSetting:RelativeToSetting * 
        description:string * 
        toolId:string * 
        locationMappings:List<LocationMapping> * 
        serviceOwner:Guid -> ServiceDefinition
public function ServiceDefinition(
    serviceType : String, 
    identifier : Guid, 
    displayName : String, 
    relativePath : String, 
    relativeToSetting : RelativeToSetting, 
    description : String, 
    toolId : String, 
    locationMappings : List<LocationMapping>, 
    serviceOwner : Guid
)

Parameters

.NET Framework Security

See Also

Reference

ServiceDefinition Class

ServiceDefinition Overload

Microsoft.VisualStudio.Services.Location Namespace