This documentation is archived and is not being maintained.

TswaHyperlinkBuilder.GetArtifactViewerUrl Method (Uri, String)

Gets a viewer URL for a TFS artifact.

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

public function GetArtifactViewerUrl(
	artifactUri : Uri, 
	accessMappingMoniker : String
) : Uri

Parameters

artifactUri
Type: System.Uri

A valid TFS artifact URI.

accessMappingMoniker
Type: System.String

A moniker for the desired access mapping.

Return Value

Type: System.Uri
A viewer URL for a TFS artifact.

Valid artifact types are Project, WorkItem, Query, VersionedItem, LatestItemVersion, Changeset, Shelveset, ShelvedItem and Build.

Show: