다음을 통해 공유


TeamFoundationFileService.TryGetFileId Method

Returns the file id of the file with the given name

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
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
)
public:
bool TryGetFileId(
    TeamFoundationRequestContext^ requestContext, 
    OwnerId ownerId, 
    String^ fileName, 
    [OutAttribute] int% fileId
)
member TryGetFileId : 
        requestContext:TeamFoundationRequestContext * 
        ownerId:OwnerId * 
        fileName:string * 
        fileId:int byref -> bool
public function TryGetFileId(
    requestContext : TeamFoundationRequestContext, 
    ownerId : OwnerId, 
    fileName : String, 
    fileId : int
) : boolean

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

.NET Framework Security

See Also

Reference

TeamFoundationFileService Class

Microsoft.TeamFoundation.Framework.Server Namespace