Condividi tramite


IDebugDocument2::GetName

Gets the name of the document in one of several forms.

HRESULT GetName( 
   GETNAME_TYPE gnType,
   BSTR*        pbstrFileName
);
int GetName( 
   enum_GETNAME_TYPE gnType,
   out string        pbstrFileName
);

Parameters

  • gnType
    [in] A value from the GETNAME_TYPE enumeration that determines the type of name to return.

  • pbstrFileName
    [out] Returns a string containing the document name.

Return Value

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

Remarks

This method can, for example, return the name of the document as a title or as a file name or even part of a file name.

See Also

Reference

IDebugDocument2

GETNAME_TYPE