共用方式為


VersionControlServer.GetVersionedItemProperty Method (ItemSpec, VersionSpec, DeletedState, ItemType, String)

Note: This API is now obsolete.

Gets a property value for the specified item.

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

Syntax

'Declaration
<ObsoleteAttribute("Please use GetItems to retrieve versioned item attributes.",  _
    False)> _
Public Function GetVersionedItemProperty ( _
    itemSpec As ItemSpec, _
    versionSpec As VersionSpec, _
    deletedState As DeletedState, _
    itemType As ItemType, _
    propertyNameFilter As String _
) As ArtifactPropertyValue()
[ObsoleteAttribute("Please use GetItems to retrieve versioned item attributes.", 
    false)]
public ArtifactPropertyValue[] GetVersionedItemProperty(
    ItemSpec itemSpec,
    VersionSpec versionSpec,
    DeletedState deletedState,
    ItemType itemType,
    string propertyNameFilter
)
[ObsoleteAttribute(L"Please use GetItems to retrieve versioned item attributes.", 
    false)]
public:
array<ArtifactPropertyValue^>^ GetVersionedItemProperty(
    ItemSpec^ itemSpec, 
    VersionSpec^ versionSpec, 
    DeletedState deletedState, 
    ItemType itemType, 
    String^ propertyNameFilter
)
[<ObsoleteAttribute("Please use GetItems to retrieve versioned item attributes.", 
    false)>]
member GetVersionedItemProperty : 
        itemSpec:ItemSpec * 
        versionSpec:VersionSpec * 
        deletedState:DeletedState * 
        itemType:ItemType * 
        propertyNameFilter:string -> ArtifactPropertyValue[] 
public function GetVersionedItemProperty(
    itemSpec : ItemSpec, 
    versionSpec : VersionSpec, 
    deletedState : DeletedState, 
    itemType : ItemType, 
    propertyNameFilter : String
) : ArtifactPropertyValue[]

Parameters

  • propertyNameFilter
    Type: System.String

    The property name to query.

Return Value

Type: array<Microsoft.TeamFoundation.Framework.Client.ArtifactPropertyValue[]
An array of ArtifactPropertyValue objects matched by the filters which have the requested property set on it.

.NET Framework Security

See Also

Reference

VersionControlServer Class

GetVersionedItemProperty Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace