Edit

Share via


IDebugDocumentPosition2::GetFileName

Gets the file name of the source file that contains the document position.

Syntax

int GetFileName( 
   out string pbstrFileName
);

Parameters

pbstrFileName
[out] Returns the file name of the source file.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

A source file may not always have a file name (the source file may not exist on disk, for example).

See also