IDataServiceHost.ResponseLocation 属性

定义

获取或设置服务位置。Gets or sets the service location.

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

属性值

String

其中包含服务位置的字符串。String that contains the service location.

示例

以下 URI 包含子字符串中服务的位置 http://myhost/myservice.svcThe following URI contains the location of the service in the substring http://myhost/myservice.svc.

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

注解

此属性从不返回 null 或 string.EmptyThis property never returns null or string.Empty.

适用于