Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the name of the document without path information.
Syntax
HRESULT GetFileName(
BSTR* pbstrShortName
);
Parameters
pbstrShortName
[out] A string containing the short name of the document.
Return Value
The method returns an HRESULT
. Possible values include, but are not limited to, those in the following table.
Value | Description |
---|---|
S_OK |
The method succeeded. |
Remarks
This method returns the short name of the document without path information. The short name is typically used in situations such as the Save As... dialog box.