共用方式為


ServiceDescription.ServiceType 屬性

定義

取得服務的類型。

public:
 property Type ^ ServiceType { Type ^ get(); void set(Type ^ value); };
public Type ServiceType { get; set; }
member this.ServiceType : Type with get, set
Public Property ServiceType As Type

屬性值

實作服務的 Type 的執行個體。

範例

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

適用於