VersionControlArtifactProvider.GetArtifactType Method

Gets the type of the version control artifact that is associated with the specified URI.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'宣言
Public Function GetArtifactType ( _
    artifactUri As Uri _
) As VersionControlArtifactType
public VersionControlArtifactType GetArtifactType(
    Uri artifactUri
)
public:
VersionControlArtifactType GetArtifactType(
    Uri^ artifactUri
)
member GetArtifactType : 
        artifactUri:Uri -> VersionControlArtifactType 
public function GetArtifactType(
    artifactUri : Uri
) : VersionControlArtifactType

Parameters

  • artifactUri
    Type: System.Uri
    The URI of the artifact of which the type is desired.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlArtifactType
The type of the version control artifact that is associated with the specified URI, or VersionControlArtifactType. Returns none if it does not represent a known version control artifact type.

.NET Framework Security

See Also

Reference

VersionControlArtifactProvider Class

Microsoft.TeamFoundation.VersionControl.Client Namespace