XmlSchemaType 類別

定義

所有簡單型別和複雜型別的基底類別。The base class for all simple types and complex types.

public ref class XmlSchemaType : System::Xml::Schema::XmlSchemaAnnotated
public class XmlSchemaType : System.Xml.Schema.XmlSchemaAnnotated
type XmlSchemaType = class
    inherit XmlSchemaAnnotated
Public Class XmlSchemaType
Inherits XmlSchemaAnnotated
繼承
衍生

範例

如需使用此類別的範例,請參閱 XmlSchemaSimpleType 類別和 XmlSchemaComplexType 類別。See the XmlSchemaSimpleType class and the XmlSchemaComplexType class for an example using this class.

建構函式

XmlSchemaType()

初始化 XmlSchemaType 類別的新執行個體。Initializes a new instance of the XmlSchemaType class.

屬性

Annotation

取得或設定 annotation 屬性。Gets or sets the annotation property.

(繼承來源 XmlSchemaAnnotated)
BaseSchemaType

取得編譯後物件型別或內建 XML 結構描述定義語言 (XSD) 資料型別、simpleType 項目或 complexType 項目。Gets the post-compilation object type or the built-in XML Schema Definition Language (XSD) data type, simpleType element, or complexType element. 這是後結構描述編譯資訊集屬性。This is a post-schema-compilation infoset property.

BaseXmlSchemaType

取得此結構描述型別之基底型別的編譯後值。Gets the post-compilation value for the base type of this schema type.

Datatype

取得複雜型別之資料型別的編譯後值。Gets the post-compilation value for the data type of the complex type.

DerivedBy

取得有關此項目如何從其基底型別衍生的編譯後資訊。Gets the post-compilation information on how this element was derived from its base type.

Final

取得或設定型別衍生的 final 屬性,指出是否允許進一步衍生。Gets or sets the final attribute of the type derivation that indicates if further derivations are allowed.

FinalResolved

取得 Final 屬性的編譯後值。Gets the post-compilation value of the Final property.

Id

取得或設定字串 ID。Gets or sets the string id.

(繼承來源 XmlSchemaAnnotated)
IsMixed

取得或設定值,指出這個型別是否具有混合內容模型。Gets or sets a value indicating if this type has a mixed content model. 這個屬性只在複雜型別中有效。This property is only valid in a complex type.

LineNumber

取得或設定 schema 項目參考之檔案中的行號。Gets or sets the line number in the file to which the schema element refers.

(繼承來源 XmlSchemaObject)
LinePosition

取得或設定 schema 項目參考之檔案中的行位置。Gets or sets the line position in the file to which the schema element refers.

(繼承來源 XmlSchemaObject)
Name

取得或設定型別的名稱。Gets or sets the name of the type.

Namespaces

取得或設定 XmlSerializerNamespaces,以便與這個結構描述物件一起使用。Gets or sets the XmlSerializerNamespaces to use with this schema object.

(繼承來源 XmlSchemaObject)
Parent

取得或設定這個 XmlSchemaObject 的父項。Gets or sets the parent of this XmlSchemaObject.

(繼承來源 XmlSchemaObject)
QualifiedName

取得從這個型別的 Name 屬性 (Attribute) 建置之型別的限定名稱 (Qualified Name)。Gets the qualified name for the type built from the Name attribute of this type. 這是後結構描述編譯屬性。This is a post-schema-compilation property.

SourceUri

取得或設定載入結構描述之檔案的來源位置。Gets or sets the source location for the file that loaded the schema.

(繼承來源 XmlSchemaObject)
TypeCode

取得型別的 XmlTypeCodeGets the XmlTypeCode of the type.

UnhandledAttributes

取得或設定不屬於目前結構描述之目標命名空間的限定屬性 (Attribute)。Gets or sets the qualified attributes that do not belong to the current schema's target namespace.

(繼承來源 XmlSchemaAnnotated)

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetBuiltInComplexType(XmlQualifiedName)

傳回 XmlSchemaComplexType,表示完整名稱指定之複雜型別的內建複雜型別。Returns an XmlSchemaComplexType that represents the built-in complex type of the complex type specified by qualified name.

GetBuiltInComplexType(XmlTypeCode)

傳回 XmlSchemaComplexType,表示指定之複雜型別的內建複雜型別。Returns an XmlSchemaComplexType that represents the built-in complex type of the complex type specified.

GetBuiltInSimpleType(XmlQualifiedName)

傳回 XmlSchemaSimpleType,表示限定名稱指定之簡單型別的內建簡單型別。Returns an XmlSchemaSimpleType that represents the built-in simple type of the simple type that is specified by the qualified name.

GetBuiltInSimpleType(XmlTypeCode)

傳回 XmlSchemaSimpleType,表示指定之簡單型別的內建簡單型別。Returns an XmlSchemaSimpleType that represents the built-in simple type of the specified simple type.

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IsDerivedFrom(XmlSchemaType, XmlSchemaType, XmlSchemaDerivationMethod)

傳回值,指出所指定衍生結構描述類型是否衍生自指定的基底結構描述類型。Returns a value indicating if the derived schema type specified is derived from the base schema type specified.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於