TeamFoundationCatalogService.QueryResourceTypes 方法
傳回所有的資源類型指定的識別項。
如果為 null 或空白清單傳遞,所有資源型別傳回。
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Function QueryResourceTypes ( _
requestContext As TeamFoundationRequestContext, _
resourceTypeIdentifiers As IEnumerable(Of Guid) _
) As List(Of CatalogResourceType)
public List<CatalogResourceType> QueryResourceTypes(
TeamFoundationRequestContext requestContext,
IEnumerable<Guid> resourceTypeIdentifiers
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
這個要求的內容。
- resourceTypeIdentifiers
型別:System.Collections.Generic.IEnumerable<Guid>
要傳回的資源類型的識別項。如果這個具有值的 null 或空白,所有資源型別傳回。
傳回值
型別:System.Collections.Generic.List<CatalogResourceType>
要求之識別項的資源類型。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。