IVsMSBuildTaskFileManager.GetFileLastChangeTime(String, FILETIME[]) Método

Definição

Obtém a hora da última alteração em um arquivo.

public:
 int GetFileLastChangeTime(System::String ^ wszFilename, cli::array <Microsoft::VisualStudio::OLE::Interop::FILETIME> ^ pFileTime);
public:
 int GetFileLastChangeTime(Platform::String ^ wszFilename, Platform::Array <Microsoft::VisualStudio::OLE::Interop::FILETIME> ^ pFileTime);
int GetFileLastChangeTime(std::wstring const & wszFilename, std::Array <Microsoft::VisualStudio::OLE::Interop::FILETIME> const & pFileTime);
public int GetFileLastChangeTime (string wszFilename, Microsoft.VisualStudio.OLE.Interop.FILETIME[] pFileTime);
abstract member GetFileLastChangeTime : string * Microsoft.VisualStudio.OLE.Interop.FILETIME[] -> int
Public Function GetFileLastChangeTime (wszFilename As String, pFileTime As FILETIME()) As Integer

Parâmetros

wszFilename
String

no O nome do arquivo.

pFileTime
FILETIME[]

fora Um FILETIME valor que especifica a hora da última alteração.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Se estiver aberta na memória, essa será a hora da última edição relatada por meio GetLastChangeTime do documento aberto. Se o arquivo não estiver aberto, a hora da última alteração do arquivo em disco será retornada.

Assinatura COM

De vsshell90. idl:

HRESULT GetFileLastChangeTime(  
    [in] LPCOLESTR wszFilename,  
    [out, retval] FILETIME* pFileTime  
);  

Aplica-se a