次の方法で共有


TswaHyperlinkBuilder.GetHistorySourceControlItemUrl Method (String, String)

Gets history viewer URL for a source control item.

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

Syntax

'Declaration
Public Function GetHistorySourceControlItemUrl ( _
    serverItemPath As String, _
    versionSpec As String _
) As Uri
public Uri GetHistorySourceControlItemUrl(
    string serverItemPath,
    string versionSpec
)
public:
Uri^ GetHistorySourceControlItemUrl(
    String^ serverItemPath, 
    String^ versionSpec
)
member GetHistorySourceControlItemUrl : 
        serverItemPath:string * 
        versionSpec:string -> Uri
public function GetHistorySourceControlItemUrl(
    serverItemPath : String, 
    versionSpec : String
) : Uri

Parameters

  • versionSpec
    Type: System.String

    Server item version specification.

Return Value

Type: System.Uri
A history viewer URL for a source control item.

Remarks

versionSpec can be one of the following:

  1. Empty | null

  2. Latest version integer less than 1

  3. Latest version integer greater than or equal to 1

  4. Changeset number C{changesetNumber}, L{Label}, D{Date} T

  5. Latest version T{VersionSpec}

  6. Tip version of the item at the version specified by VersionSpec

  7. P{VersionSpec} - Previous version of the item at the version specified by VersionSpec.

.NET Framework Security

See Also

Reference

TswaHyperlinkBuilder Class

GetHistorySourceControlItemUrl Overload

Microsoft.TeamFoundation.Common Namespace