Share via


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)

Syntax

'Declaration
Public Function GetArtifactViewerUrl ( _
    artifactUri As Uri, _
    accessMappingMoniker As String _
) As Uri
public Uri GetArtifactViewerUrl(
    Uri artifactUri,
    string accessMappingMoniker
)
public:
Uri^ GetArtifactViewerUrl(
    Uri^ artifactUri, 
    String^ accessMappingMoniker
)
member GetArtifactViewerUrl : 
        artifactUri:Uri * 
        accessMappingMoniker:string -> Uri
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.

Remarks

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

.NET Framework Security

See Also

Reference

TswaHyperlinkBuilder Class

GetArtifactViewerUrl Overload

Microsoft.TeamFoundation.Common Namespace