共用方式為


TeamFoundationFileService.TryGetFileId 方法

傳回檔案的檔案 ID 有指定名稱。

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Public Function TryGetFileId ( _
    requestContext As TeamFoundationRequestContext, _
    ownerId As OwnerId, _
    fileName As String, _
    <OutAttribute> ByRef fileId As Integer _
) As Boolean
public bool TryGetFileId(
    TeamFoundationRequestContext requestContext,
    OwnerId ownerId,
    string fileName,
    out int fileId
)

參數

傳回值

類型:System.Boolean
傳回 Boolean

.NET Framework 安全性

請參閱

參考

TeamFoundationFileService 類別

Microsoft.TeamFoundation.Framework.Server 命名空間