This documentation is archived and is not being maintained.

HttpListenerRequest.ServiceName Property

Gets the Service Provider Name (SPN) that the client sent on the request.

Namespace:  System.Net
Assembly:  System (in System.dll)

'Declaration
Public Property ServiceName As String
'Usage
Dim instance As HttpListenerRequest 
Dim value As String 

value = instance.ServiceName

instance.ServiceName = value

Property Value

Type: System.String
A String that contains the SPN the client sent on the request.

An application could use the ServiceName property to perform custom Service Provide Name (SPN) validation.

Windows 7, Windows Server 2008 R2

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1
Show: