UriParser.IsWellFormedOriginalString(Uri) Método

Definição

Indica se um URI é bem formado.Indicates whether a URI is well-formed.

protected:
 virtual bool IsWellFormedOriginalString(Uri ^ uri);
protected virtual bool IsWellFormedOriginalString (Uri uri);
abstract member IsWellFormedOriginalString : Uri -> bool
override this.IsWellFormedOriginalString : Uri -> bool
Protected Overridable Function IsWellFormedOriginalString (uri As Uri) As Boolean

Parâmetros

uri
Uri

O URI a ser verificado.The URI to check.

Retornos

Boolean

true se uri for bem formado; caso contrário, false.true if uri is well-formed; otherwise, false.

Comentários

O IsWellFormedOriginalString método retornará false se:The IsWellFormedOriginalString method will return false if:

  • A cadeia de caracteres não tem um escape correto por RFC 2396.The string is not correctly escaped per RFC 2396.

  • A cadeia de caracteres representa um URI absoluto que faz referência a um URI de arquivo implícito.The string represents an absolute URI that references an implicit file URI.

  • A cadeia de caracteres representa um URI absoluto que não tem uma barra invertida antes do componente de caminho.The string represents an absolute URI that is missing a forward slash before the path component.

  • A cadeia de caracteres contém barras invertidas sem escape, mesmo se elas forem tratadas como barras "/".The string contains unescaped backslashes, even if they will be treated as forward slashes.

Aplica-se a