Compartilhar via


GenerateMetadata.SearchPath Método

Definição

Procura 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 a ser pesquisado.

extension
String

Uma extensão a ser adicionada ao nome do arquivo ao procurar por ele.

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 tiver êxito, o valor retornado será o tamanho da cadeia de caracteres copiado para buffer. Se a pesquisa falhar, o valor retornado será 0.

Comentários

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

Aplica-se a