共用方式為


ILocationService.LocationForAccessMapping Method (ServiceDefinition, AccessMapping)

Returns the location for the ServiceDefinition for the provided AccessMapping. If this ServiceDefinition is FullyQualified and no LocationMapping exists for this AccessMapping then null will be returned.

Namespace:  Microsoft.VisualStudio.Services.Location
Assembly:  Microsoft.VisualStudio.Services.Client (in Microsoft.VisualStudio.Services.Client.dll)

Syntax

'Declaration
Function LocationForAccessMapping ( _
    serviceDefinition As ServiceDefinition, _
    accessMapping As AccessMapping _
) As String
string LocationForAccessMapping(
    ServiceDefinition serviceDefinition,
    AccessMapping accessMapping
)
String^ LocationForAccessMapping(
    ServiceDefinition^ serviceDefinition, 
    AccessMapping^ accessMapping
)
abstract LocationForAccessMapping : 
        serviceDefinition:ServiceDefinition * 
        accessMapping:AccessMapping -> string
function LocationForAccessMapping(
    serviceDefinition : ServiceDefinition, 
    accessMapping : AccessMapping
) : String

Parameters

Return Value

Type: System.String
The location for the ServiceDefinition for the provided AccessMapping. If this ServiceDefinition is FullyQualified and no LocationMapping exists for this AccessMapping then null will be returned.

.NET Framework Security

See Also

Reference

ILocationService Interface

LocationForAccessMapping Overload

Microsoft.VisualStudio.Services.Location Namespace