GenerateMetadata.SearchPath Método

Definição

Pesquisa um arquivo especificado em um caminho especificado.

Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.

public:
 static int SearchPath(System::String ^ path, System::String ^ fileName, System::String ^ extension, int numBufferChars, System::String ^ buffer, cli::array <int> ^ filePart);
public static int SearchPath(string path, string fileName, string extension, int numBufferChars, string buffer, int[] filePart);
static member SearchPath : string * string * string * int * string * int[] -> int
Public Shared Function SearchPath (path As String, fileName As String, extension As String, numBufferChars As Integer, buffer As String, filePart As Integer()) As Integer

Parâmetros

path
String

O caminho a ser pesquisado para o arquivo.

fileName
String

O nome do arquivo para o qual pesquisar.

extension
String

Uma extensão a ser adicionada ao nome do arquivo ao pesquisar o arquivo.

numBufferChars
Int32

O tamanho do buffer que recebe o caminho válido e o nome do arquivo.

buffer
String

O buffer que recebe o caminho e o nome do arquivo encontrado.

filePart
Int32[]

A variável que recebe o endereço do último componente do caminho válido e do nome do arquivo.

Retornos

Se a pesquisa for bem-sucedida, o valor retornado será o comprimento da cadeia de caracteres copiada para buffer. Se a pesquisa falhar, o valor retornado será 0.

Comentários

Para obter mais informações, consulte a função SearchPath.

Aplica-se a