Types 类

定义

描述与交换的消息相关的数据类型定义。Describes data type definitions relevant to exchanged messages. 此类不能被继承。This class cannot be inherited.

public ref class Types sealed : System::Web::Services::Description::DocumentableItem
[System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")]
public sealed class Types : System.Web.Services.Description.DocumentableItem
[<System.Web.Services.Configuration.XmlFormatExtensionPoint("Extensions")>]
type Types = class
    inherit DocumentableItem
Public NotInheritable Class Types
Inherits DocumentableItem
继承
属性

注解

此类是 XML Web service 的数据类型定义的容器。This class is a container for data type definitions for the XML Web service. 特别注意,此类不表示类的实例集合 Type ,因为其名称可能表示。Note especially that this class does not represent a collection of instances of the Type class, as its name might imply. 相反,它对应于 Web 服务描述语言 (<types> 由根元素括起来的 WSDL) 元素 <definitions>Instead, it corresponds to the Web Services Description Language (WSDL) <types> element enclosed by the <definitions> root element. 有关 WSDL 的更多信息,请参阅 WSDL 规范。For more information about WSDL, see the WSDL specification.

Types类具有两个只读属性, SchemasExtensions 表示可用于 XML Web service 的数据类型定义的集合。The Types class has two read-only properties, Schemas and Extensions, representing the collections of data type definitions available to an XML Web service.

构造函数

Types()

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

属性

Documentation

获取或设置 DocumentableItem 的实例的文本文档。Gets or sets the text documentation for the instance of the DocumentableItem.

(继承自 DocumentableItem)
DocumentationElement

获取或设置 DocumentableItem 的文档元素。Gets or sets the documentation element for the DocumentableItem.

(继承自 DocumentableItem)
ExtensibleAttributes

获取或设置类型为 XmlAttribute 的数组,该数组表示为符合 Web 服务互操作性 (WS-I) 基本概要 1.1 而进行的 WSDL 特性扩展。Gets or sets an array of type XmlAttribute that represents attribute extensions of WSDL to comply with Web Services Interoperability (WS-I) Basic Profile 1.1.

(继承自 DocumentableItem)
Extensions

获取包含在 XML Web services 中的 ServiceDescriptionFormatExtension 元素的集合。Gets the collection of ServiceDescriptionFormatExtension elements included in the XML Web service. 此属性为只读。This property is read-only.

Namespaces

获取或设置命名空间前缀和命名空间的字典,该字典用于在构造 ServiceDescription 对象时,保留命名空间的前缀和命名空间。Gets or sets the dictionary of namespace prefixes and namespaces used to preserve namespace prefixes and namespaces when a ServiceDescription object is constructed.

(继承自 DocumentableItem)
Schemas

获取作为 XML Web services 的数据类型定义而包含的 XML 架构的集合。Gets the collection of XML schemas included as data type definitions for the XML Web service. 此属性为只读。This property is read-only.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于