ServiceReference.Path Propriedade

Definição

Obtém ou define o caminho do serviço Web referenciado.Gets or sets the path of the referenced Web service.

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

Valor da propriedade

String

O caminho do serviço Web referenciado.The path of the referenced Web service.

Comentários

A Path propriedade pode apontar apenas para serviços Web locais.The Path property can point only to local Web services. Em outras palavras, essa propriedade só pode apontar para serviços Web no mesmo domínio que seu aplicativo Web ASP.NET habilitado para AJAX.In other words, this property can only point to Web services in the same domain as your AJAX-enabled ASP.NET Web application. Path pode ser um caminho relativo, relativo ao aplicativo, relativo a um domínio ou absoluto.Path can be a relative, application-relative, domain-relative, or absolute path.

Se a InlineScript propriedade for definida como true , você deverá usar um caminho relativo que aponte para o mesmo aplicativo Web que a página que contém a ServiceReference instância.If the InlineScript property is set to true, then you must use a relative path that points to the same Web application as the page that contains the ServiceReference instance.

Aplica-se a