ServiceDescription.ServiceType Property

 

Gets the type of the service.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public Type ServiceType { get; set; }

Property Value

Type: System.Type

An instance of the Type that implements the service.

Type serviceType = svcDesc.ServiceType;
Console.WriteLine("Service Type: {0}", serviceType.ToString());

.NET Framework
Available since 3.0
Return to top
Show: