HttpListenerRequest.ServiceName 属性    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取客户端通过请求发送的服务提供程序名称 (SPN)。
public:
 property System::String ^ ServiceName { System::String ^ get(); };public string? ServiceName { get; }public string ServiceName { get; }member this.ServiceName : stringPublic ReadOnly Property ServiceName As String属性值
一个 String,它包含客户端通过请求发送的 SPN。
注解
应用程序可以使用 ServiceName 属性执行自定义服务提供名称 (SPN) 验证。