Share via


VersionControlServer.GetVersionedItemProperty 方法 (ItemSpec, VersionSpec, DeletedState, ItemType, String)

注意:此 API 现在已过时。

获取指定项目的一个属性值。

命名空间:  Microsoft.TeamFoundation.VersionControl.Client
程序集:  Microsoft.TeamFoundation.VersionControl.Client(在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)

语法

声明
<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
)

参数

  • propertyNameFilter
    类型:System.String
    查询的属性名称。

返回值

类型:array<Microsoft.TeamFoundation.Framework.Client.ArtifactPropertyValue[]
数组 ArtifactPropertyValue 对象由已设置的请求的属性的筛选器匹配。

.NET Framework 安全性

请参见

参考

VersionControlServer 类

GetVersionedItemProperty 重载

Microsoft.TeamFoundation.VersionControl.Client 命名空间