ServiceType 构造函数

定义

初始化 ServiceType 类的新实例。Initializes a new instance of the ServiceType class.

重载

ServiceType(Type)

使用传递到 Web 服务描述语言 (WSDL) 生成器的对象 ServiceType 初始化 Type 类的新实例。Initializes a new instance of the ServiceType class with the object Type that is passed to the Web Services Description Language (WSDL) generator.

ServiceType(Type, String)

使用该 URL 和传递到 Web 服务描述语言 (WSDL) 生成器的对象 ServiceType 初始化 Type 类的新实例。Initializes a new instance of the ServiceType class with the URL and Type of an object that is passed to the Web Services Description Language (WSDL) generator.

ServiceType(Type)

使用传递到 Web 服务描述语言 (WSDL) 生成器的对象 ServiceType 初始化 Type 类的新实例。Initializes a new instance of the ServiceType class with the object Type that is passed to the Web Services Description Language (WSDL) generator.

public:
 ServiceType(Type ^ type);
public ServiceType (Type type);
new System.Runtime.Remoting.MetadataServices.ServiceType : Type -> System.Runtime.Remoting.MetadataServices.ServiceType
Public Sub New (type As Type)

参数

type
Type

传递到 WSDL 生成器的对象 TypeThe object Type that is passed to the WSDL generator.

适用于

ServiceType(Type, String)

使用该 URL 和传递到 Web 服务描述语言 (WSDL) 生成器的对象 ServiceType 初始化 Type 类的新实例。Initializes a new instance of the ServiceType class with the URL and Type of an object that is passed to the Web Services Description Language (WSDL) generator.

public:
 ServiceType(Type ^ type, System::String ^ url);
public ServiceType (Type type, string url);
new System.Runtime.Remoting.MetadataServices.ServiceType : Type * string -> System.Runtime.Remoting.MetadataServices.ServiceType
Public Sub New (type As Type, url As String)

参数

type
Type

传递到 WSDL 生成器的对象 TypeThe object Type that is passed to the WSDL generator.

url
String

可以处理发送给在 type 参数中指定的对象类型上的方法的消息的已知终结点。The well-known endpoint that can process messages that are sent to a method on the object type that is specified in the type parameter.

适用于