次の方法で共有


UCOMIPersistFile.GetCurFile メソッド

オブジェクトの現在の作業ファイルへの絶対パスを取得します。または、現在作業ファイルがない場合は、オブジェクトの既定のファイル名プロンプトを取得します。

Sub GetCurFile( _
   <Out()> ByRef ppszFileName As String _)
[C#]
void GetCurFile(
   out stringppszFileName);
[C++]
void GetCurFile(
   [
   Out
] String** ppszFileName);
[JScript]
function GetCurFile(
   ppszFileName : String);

パラメータ

  • ppszFileName
    現在のファイルのパスを含む、0 で終わる文字列へのポインタのアドレス。それ以外の場合は、既定のファイル名プロンプト (*.txt など)。

解説

詳細については、MSDN ライブラリで IPersistFile::GetCurFile に関する既存のドキュメントを参照してください。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

UCOMIPersistFile インターフェイス | UCOMIPersistFile メンバ | System.Runtime.InteropServices 名前空間