Condividi tramite


Proprietà IDataServiceHost.ResponseLocation

Ottiene o imposta il percorso del servizio.

Spazio dei nomi  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Sintassi

'Dichiarazione
Property ResponseLocation As String
    Get
    Set
'Utilizzo
Dim instance As IDataServiceHost
Dim value As String

value = instance.ResponseLocation

instance.ResponseLocation = value
string ResponseLocation { get; set; }
property String^ ResponseLocation {
    String^ get ();
    void set (String^ value);
}
abstract ResponseLocation : string with get, set
function get ResponseLocation () : String
function set ResponseLocation (value : String)

Valore proprietà

Tipo: System.String
Stringa che contiene il percorso del servizio.

Osservazioni

Questa proprietà non restituisce mai null o string.Empty.

Esempi

Il seguente URI contiene il percorso del servizio nella sottostringa http://myhost/myservice.svc.

http://myhost/myservice.svc/Customers, the response location would be http://myhost/myservice.svc

Vedere anche

Riferimento

IDataServiceHost Interfaccia

Spazio dei nomi System.Data.Services