ServiceDefinitionExtensions.GetLocationMapping Method

Returns 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.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetLocationMapping ( _
    serviceDefinition As ServiceDefinition, _
    accessMapping As AccessMapping _
) As LocationMapping
public static LocationMapping GetLocationMapping(
    this ServiceDefinition serviceDefinition,
    AccessMapping accessMapping
)
[ExtensionAttribute]
public:
static LocationMapping^ GetLocationMapping(
    ServiceDefinition^ serviceDefinition, 
    AccessMapping^ accessMapping
)
static member GetLocationMapping : 
        serviceDefinition:ServiceDefinition * 
        accessMapping:AccessMapping -> LocationMapping
public static function GetLocationMapping(
    serviceDefinition : ServiceDefinition, 
    accessMapping : AccessMapping
) : LocationMapping

Parameters

Return Value

Type: Microsoft.VisualStudio.Services.Location.LocationMapping
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.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ServiceDefinition. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ServiceDefinitionExtensions Class

Microsoft.VisualStudio.Services.Location Namespace