ITeamFoundationLocationService.FindServiceDefinitions 方法
尋找所有的服務定義所指定的服務類型的可用服務。 如果型別服務不存在,則傳回空列舉型別會傳回。
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Function FindServiceDefinitions ( _
requestContext As TeamFoundationRequestContext, _
serviceType As String, _
serviceOwner As Guid _
) As IEnumerable(Of ServiceDefinition)
IEnumerable<ServiceDefinition> FindServiceDefinitions(
TeamFoundationRequestContext requestContext,
string serviceType,
Guid serviceOwner
)
參數
- requestContext
類型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
要求內容這個呼叫與。
- serviceType
類型:System.String
識別的不區分大小寫字串哪些服務要求。如果此值為 null,所有服務定義移至這個位置服務註冊將會傳回。
- serviceOwner
類型:System.Guid
如果您 targetting 目前服務的位置服務,服務擁有人應該是 Guid.Empty。如果您要以遠端服務的位置服務。這應該是服務的 GUID。使用 Microsoft.VisualStudio.Services.Common.ServiceOwners
傳回值
類型:System.Collections.Generic.IEnumerable<ServiceDefinition>
是否在所提供的服務型別的所有定義服務現有服務。如果型別服務不存在,則傳回空列舉型別會傳回。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。