ParserError.VirtualPath Propriedade

Definição

Obtém ou define o caminho virtual do arquivo que estava sendo analisado quando ocorreu o erro.Gets or set the virtual path of the file that was being parsed when the error occurred.

public:
 property System::String ^ VirtualPath { System::String ^ get(); void set(System::String ^ value); };
public string VirtualPath { get; set; }
member this.VirtualPath : string with get, set
Public Property VirtualPath As String

Valor da propriedade

String

Uma cadeia de caracteres que especifica o caminho virtual do arquivo que contém o erro do analisador.A string that specifies the virtual path of the file that contains the parser error.

Exemplos

O exemplo de código a seguir demonstra como preencher a VirtualPath propriedade para um ParserError objeto.The following code example demonstrates how to populate the VirtualPath property for a ParserError object.

MyParserError.VirtualPath = "MyPath";
myParserError.VirtualPath = "MyPath"

Aplica-se a

Confira também