XmlSerializationWriter XmlSerializationWriter XmlSerializationWriter XmlSerializationWriter Class

定義

表示由 XmlSerializer 類別 (Class) 用來控制序列化 (Serialization) 的抽象類別。Represents an abstract class used for controlling serialization by the XmlSerializer class.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public ref class XmlSerializationWriter abstract : System::Xml::Serialization::XmlSerializationGeneratedCode
public abstract class XmlSerializationWriter : System.Xml.Serialization.XmlSerializationGeneratedCode
type XmlSerializationWriter = class
    inherit XmlSerializationGeneratedCode
Public MustInherit Class XmlSerializationWriter
Inherits XmlSerializationGeneratedCode
繼承
XmlSerializationWriterXmlSerializationWriterXmlSerializationWriterXmlSerializationWriter

備註

在初始化期間,.NET Framework 的 XML 序列化基礎結構以動態方式產生並編譯序列化衍生自抽象的暫時類別XmlSerializationWriter類別。During initialization, the .NET Framework XML serialization infrastructure dynamically generates and compiles a temporary class for serialization that is derived from the abstract XmlSerializationWriter class. XmlSerializationWriter 也序列化的.NET Framework 中實作DiscoveryDocumentServiceDescription為 XML 文件的物件。XmlSerializationWriter is also implemented within the .NET Framework for serialization of DiscoveryDocument and ServiceDescription objects into XML documents.

您應該不是衍生類別XmlSerializationWriterYou should not derive classes from XmlSerializationWriter. 請改為呼叫Serialize方法。Instead, call the Serialize method.

建構函式

XmlSerializationWriter() XmlSerializationWriter() XmlSerializationWriter() XmlSerializationWriter()

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

屬性

EscapeName EscapeName EscapeName EscapeName

取得或設定值,指出是否會使用 EncodeName(String) 方法來寫入有效的 XML。Gets or sets a value that indicates whether the EncodeName(String) method is used to write valid XML.

Namespaces Namespaces Namespaces Namespaces

取得或設定 XML 限定名稱物件的清單,這些物件含有用來在 XML 文件中產生限定名稱的命名空間和前置詞。Gets or sets a list of XML qualified name objects that contain the namespaces and prefixes used to produce qualified names in XML documents.

Writer Writer Writer Writer

取得或設定 XmlWriter 所使用的 XmlSerializationWriterGets or sets the XmlWriter that is being used by the XmlSerializationWriter.

方法

AddWriteCallback(Type, String, String, XmlSerializationWriteCallback) AddWriteCallback(Type, String, String, XmlSerializationWriteCallback) AddWriteCallback(Type, String, String, XmlSerializationWriteCallback) AddWriteCallback(Type, String, String, XmlSerializationWriteCallback)

儲存 XmlSerializationWriteCallback 委派 (Delegate) 的實作及它所套用的型別,以供稍後的引動過程使用。Stores an implementation of the XmlSerializationWriteCallback delegate and the type it applies to, for a later invocation.

CreateChoiceIdentifierValueException(String, String, String, String) CreateChoiceIdentifierValueException(String, String, String, String) CreateChoiceIdentifierValueException(String, String, String, String) CreateChoiceIdentifierValueException(String, String, String, String)

建立 InvalidOperationException,表示符合 XML 結構描述 choice 項目宣告的項目含有非預期的名稱。Creates an InvalidOperationException that indicates an unexpected name for an element that adheres to an XML Schema choice element declaration.

CreateInvalidAnyTypeException(Object) CreateInvalidAnyTypeException(Object) CreateInvalidAnyTypeException(Object) CreateInvalidAnyTypeException(Object)

建立 InvalidOperationException,表示 XmlAnyElementAttribute 已經套用至某個無效的成員。只有型別為 XmlNode 的成員或衍生自 XmlNode 的成員才是有效成員。Creates an InvalidOperationException that indicates the XmlAnyElementAttribute which has been invalidly applied to a member; only members that are of type XmlNode, or derived from XmlNode, are valid.

CreateInvalidAnyTypeException(Type) CreateInvalidAnyTypeException(Type) CreateInvalidAnyTypeException(Type) CreateInvalidAnyTypeException(Type)

建立 InvalidOperationException,表示 XmlAnyElementAttribute 已經套用至某個無效的成員。只有型別為 XmlNode 的成員或衍生自 XmlNode 的成員才是有效成員。Creates an InvalidOperationException that indicates the XmlAnyElementAttribute which has been invalidly applied to a member; only members that are of type XmlNode, or derived from XmlNode, are valid.

CreateInvalidChoiceIdentifierValueException(String, String) CreateInvalidChoiceIdentifierValueException(String, String) CreateInvalidChoiceIdentifierValueException(String, String) CreateInvalidChoiceIdentifierValueException(String, String)

建立 InvalidOperationException,表示在寫入套用 XML 結構描述 choice 項目宣告的位置時,發生失敗。Creates an InvalidOperationException that indicates a failure while writing an array where an XML Schema choice element declaration is applied.

CreateInvalidEnumValueException(Object, String) CreateInvalidEnumValueException(Object, String) CreateInvalidEnumValueException(Object, String) CreateInvalidEnumValueException(Object, String)

建立無效列舉值的 InvalidOperationExceptionCreates an InvalidOperationException for an invalid enumeration value.

CreateMismatchChoiceException(String, String, String) CreateMismatchChoiceException(String, String, String) CreateMismatchChoiceException(String, String, String) CreateMismatchChoiceException(String, String, String)

建立 InvalidOperationException,表示 XML 項目的值與列舉型別不符。Creates an InvalidOperationException that indicates that a value for an XML element does not match an enumeration type.

CreateUnknownAnyElementException(String, String) CreateUnknownAnyElementException(String, String) CreateUnknownAnyElementException(String, String) CreateUnknownAnyElementException(String, String)

建立 InvalidOperationException,表示無法處理應符合 XML 結構描述 any 項目宣告的 XML 項目。Creates an InvalidOperationException that indicates that an XML element that should adhere to the XML Schema any element declaration cannot be processed.

CreateUnknownTypeException(Object) CreateUnknownTypeException(Object) CreateUnknownTypeException(Object) CreateUnknownTypeException(Object)

建立 InvalidOperationException,其表示正在序列化的型別並未以有效的方式使用,或是在非預期情況下遇到此型別。Creates an InvalidOperationException that indicates that a type being serialized is not being used in a valid manner or is unexpectedly encountered.

CreateUnknownTypeException(Type) CreateUnknownTypeException(Type) CreateUnknownTypeException(Type) CreateUnknownTypeException(Type)

建立 InvalidOperationException,其表示正在序列化的型別並未以有效的方式使用,或是在非預期情況下遇到此型別。Creates an InvalidOperationException that indicates that a type being serialized is not being used in a valid manner or is unexpectedly encountered.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
FromByteArrayBase64(Byte[]) FromByteArrayBase64(Byte[]) FromByteArrayBase64(Byte[]) FromByteArrayBase64(Byte[])

處理 Base-64 位元組陣列。Processes a base-64 byte array.

FromByteArrayHex(Byte[]) FromByteArrayHex(Byte[]) FromByteArrayHex(Byte[]) FromByteArrayHex(Byte[])

從輸入十六進位位元組陣列產生字串。Produces a string from an input hexadecimal byte array.

FromChar(Char) FromChar(Char) FromChar(Char) FromChar(Char)

從輸入 Char 產生字串。Produces a string from an input Char.

FromDate(DateTime) FromDate(DateTime) FromDate(DateTime) FromDate(DateTime)

DateTime 物件產生字串。Produces a string from a DateTime object.

FromDateTime(DateTime) FromDateTime(DateTime) FromDateTime(DateTime) FromDateTime(DateTime)

從輸入 DateTime 產生字串。Produces a string from an input DateTime.

FromEnum(Int64, String[], Int64[]) FromEnum(Int64, String[], Int64[]) FromEnum(Int64, String[], Int64[]) FromEnum(Int64, String[], Int64[])

產生含有分隔識別項的字串,表示已經設定的列舉型別成員。Produces a string that consists of delimited identifiers that represent the enumeration members that have been set.

FromEnum(Int64, String[], Int64[], String) FromEnum(Int64, String[], Int64[], String) FromEnum(Int64, String[], Int64[], String) FromEnum(Int64, String[], Int64[], String)

採用數值列舉值以及列舉型別之列舉值清單中的名稱與常數,並傳回含有分隔識別項的字串,表示已經設定的列舉型別成員。Takes a numeric enumeration value and the names and constants from the enumerator list for the enumeration and returns a string that consists of delimited identifiers that represent the enumeration members that have been set.

FromTime(DateTime) FromTime(DateTime) FromTime(DateTime) FromTime(DateTime)

DateTime 物件產生字串。Produces a string from a DateTime object.

FromXmlName(String) FromXmlName(String) FromXmlName(String) FromXmlName(String)

藉由使用逸出序列 (Escape Sequence) 取代無效的字元,對有效的 XML 名稱進行編碼。Encodes a valid XML name by replacing characters that are not valid with escape sequences.

FromXmlNCName(String) FromXmlNCName(String) FromXmlNCName(String) FromXmlNCName(String)

藉由使用逸出序列取代無效的字元,對有效的 XML 區域名稱進行編碼。Encodes a valid XML local name by replacing characters that are not valid with escape sequences.

FromXmlNmToken(String) FromXmlNmToken(String) FromXmlNmToken(String) FromXmlNmToken(String)

對 XML 名稱進行編碼。Encodes an XML name.

FromXmlNmTokens(String) FromXmlNmTokens(String) FromXmlNmTokens(String) FromXmlNmTokens(String)

將以空格分隔的 XML 名稱序列編碼成單一 XML 名稱。Encodes a space-delimited sequence of XML names into a single XML name.

FromXmlQualifiedName(XmlQualifiedName) FromXmlQualifiedName(XmlQualifiedName) FromXmlQualifiedName(XmlQualifiedName) FromXmlQualifiedName(XmlQualifiedName)

傳回 XML 限定名稱 (Qualified Name),並以逸出序列取代無效的字元。Returns an XML qualified name, with invalid characters replaced by escape sequences.

FromXmlQualifiedName(XmlQualifiedName, Boolean) FromXmlQualifiedName(XmlQualifiedName, Boolean) FromXmlQualifiedName(XmlQualifiedName, Boolean) FromXmlQualifiedName(XmlQualifiedName, Boolean)

產生可寫入成為 XML 限定名稱的字串,並以逸出序列取代無效的字元。Produces a string that can be written as an XML qualified name, with invalid characters replaced by escape sequences.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
InitCallbacks() InitCallbacks() InitCallbacks() InitCallbacks()

初始化 XmlSerializationWriteCallback 委派的執行個體,以序列化 SOAP 編碼的 XML 資料。Initializes an instances of the XmlSerializationWriteCallback delegate to serialize SOAP-encoded XML data.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(Inherited from Object)
ResolveDynamicAssembly(String) ResolveDynamicAssembly(String) ResolveDynamicAssembly(String) ResolveDynamicAssembly(String)

根據名稱取得動態產生的組件。Gets a dynamically generated assembly by name.

TopLevelElement() TopLevelElement() TopLevelElement() TopLevelElement()

只有在序列化 SOAP 編碼的 SOAP 訊息時才初始化物件參考。Initializes object references only while serializing a SOAP-encoded SOAP message.

ToString() ToString() ToString() ToString()

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

(Inherited from Object)
WriteAttribute(String, Byte[]) WriteAttribute(String, Byte[]) WriteAttribute(String, Byte[]) WriteAttribute(String, Byte[])

指示 XmlWriter 物件寫入沒有針對名稱指定命名空間的 XML 屬性。Instructs an XmlWriter object to write an XML attribute that has no namespace specified for its name.

WriteAttribute(String, String) WriteAttribute(String, String) WriteAttribute(String, String) WriteAttribute(String, String)

指示 XmlWriter 寫入沒有針對名稱指定命名空間的 XML 屬性。Instructs the XmlWriter to write an XML attribute that has no namespace specified for its name.

WriteAttribute(String, String, Byte[]) WriteAttribute(String, String, Byte[]) WriteAttribute(String, String, Byte[]) WriteAttribute(String, String, Byte[])

指示 XmlWriter 物件寫入 XML 屬性。Instructs an XmlWriter object to write an XML attribute.

WriteAttribute(String, String, String) WriteAttribute(String, String, String) WriteAttribute(String, String, String) WriteAttribute(String, String, String)

寫入 XML 屬性。Writes an XML attribute.

WriteAttribute(String, String, String, String) WriteAttribute(String, String, String, String) WriteAttribute(String, String, String, String) WriteAttribute(String, String, String, String)

寫入 XML 屬性,其中命名空間前置詞是以手動方式提供。Writes an XML attribute where the namespace prefix is provided manually.

WriteElementEncoded(XmlNode, String, String, Boolean, Boolean) WriteElementEncoded(XmlNode, String, String, Boolean, Boolean) WriteElementEncoded(XmlNode, String, String, Boolean, Boolean) WriteElementEncoded(XmlNode, String, String, Boolean, Boolean)

在具名 XML 項目的主體內寫入 XML 節點物件。Writes an XML node object within the body of a named XML element.

WriteElementLiteral(XmlNode, String, String, Boolean, Boolean) WriteElementLiteral(XmlNode, String, String, Boolean, Boolean) WriteElementLiteral(XmlNode, String, String, Boolean, Boolean) WriteElementLiteral(XmlNode, String, String, Boolean, Boolean)

指示 XmlWriter 物件在具名 XML 項目的主體內寫入 XmlNode 物件。Instructs an XmlWriter object to write an XmlNode object within the body of a named XML element.

WriteElementQualifiedName(String, String, XmlQualifiedName) WriteElementQualifiedName(String, String, XmlQualifiedName) WriteElementQualifiedName(String, String, XmlQualifiedName) WriteElementQualifiedName(String, String, XmlQualifiedName)

以其主體中指定的限定名稱寫入 XML 項目。Writes an XML element with a specified qualified name in its body.

WriteElementQualifiedName(String, String, XmlQualifiedName, XmlQualifiedName) WriteElementQualifiedName(String, String, XmlQualifiedName, XmlQualifiedName) WriteElementQualifiedName(String, String, XmlQualifiedName, XmlQualifiedName) WriteElementQualifiedName(String, String, XmlQualifiedName, XmlQualifiedName)

以其主體中指定的限定名稱寫入 XML 項目。Writes an XML element with a specified qualified name in its body.

WriteElementQualifiedName(String, XmlQualifiedName) WriteElementQualifiedName(String, XmlQualifiedName) WriteElementQualifiedName(String, XmlQualifiedName) WriteElementQualifiedName(String, XmlQualifiedName)

以其主體中指定的限定名稱寫入 XML 項目。Writes an XML element with a specified qualified name in its body.

WriteElementQualifiedName(String, XmlQualifiedName, XmlQualifiedName) WriteElementQualifiedName(String, XmlQualifiedName, XmlQualifiedName) WriteElementQualifiedName(String, XmlQualifiedName, XmlQualifiedName) WriteElementQualifiedName(String, XmlQualifiedName, XmlQualifiedName)

以其主體中指定的限定名稱寫入 XML 項目。Writes an XML element with a specified qualified name in its body.

WriteElementString(String, String) WriteElementString(String, String) WriteElementString(String, String) WriteElementString(String, String)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementString(String, String, String) WriteElementString(String, String, String) WriteElementString(String, String, String) WriteElementString(String, String, String)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementString(String, String, String, XmlQualifiedName) WriteElementString(String, String, String, XmlQualifiedName) WriteElementString(String, String, String, XmlQualifiedName) WriteElementString(String, String, String, XmlQualifiedName)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementString(String, String, XmlQualifiedName) WriteElementString(String, String, XmlQualifiedName) WriteElementString(String, String, XmlQualifiedName) WriteElementString(String, String, XmlQualifiedName)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, Byte[]) WriteElementStringRaw(String, Byte[]) WriteElementStringRaw(String, Byte[]) WriteElementStringRaw(String, Byte[])

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, Byte[], XmlQualifiedName) WriteElementStringRaw(String, Byte[], XmlQualifiedName) WriteElementStringRaw(String, Byte[], XmlQualifiedName) WriteElementStringRaw(String, Byte[], XmlQualifiedName)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, String) WriteElementStringRaw(String, String) WriteElementStringRaw(String, String) WriteElementStringRaw(String, String)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, String, Byte[]) WriteElementStringRaw(String, String, Byte[]) WriteElementStringRaw(String, String, Byte[]) WriteElementStringRaw(String, String, Byte[])

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, String, Byte[], XmlQualifiedName) WriteElementStringRaw(String, String, Byte[], XmlQualifiedName) WriteElementStringRaw(String, String, Byte[], XmlQualifiedName) WriteElementStringRaw(String, String, Byte[], XmlQualifiedName)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, String, String) WriteElementStringRaw(String, String, String) WriteElementStringRaw(String, String, String) WriteElementStringRaw(String, String, String)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, String, String, XmlQualifiedName) WriteElementStringRaw(String, String, String, XmlQualifiedName) WriteElementStringRaw(String, String, String, XmlQualifiedName) WriteElementStringRaw(String, String, String, XmlQualifiedName)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteElementStringRaw(String, String, XmlQualifiedName) WriteElementStringRaw(String, String, XmlQualifiedName) WriteElementStringRaw(String, String, XmlQualifiedName) WriteElementStringRaw(String, String, XmlQualifiedName)

以其主體中指定的值寫入 XML 項目。Writes an XML element with a specified value in its body.

WriteEmptyTag(String) WriteEmptyTag(String) WriteEmptyTag(String) WriteEmptyTag(String)

寫入主體為空白的 XML 項目。Writes an XML element whose body is empty.

WriteEmptyTag(String, String) WriteEmptyTag(String, String) WriteEmptyTag(String, String) WriteEmptyTag(String, String)

寫入主體為空白的 XML 項目。Writes an XML element whose body is empty.

WriteEndElement() WriteEndElement() WriteEndElement() WriteEndElement()

寫入 <closing> 項目標記。Writes a <closing> element tag.

WriteEndElement(Object) WriteEndElement(Object) WriteEndElement(Object) WriteEndElement(Object)

寫入 <closing> 項目標記。Writes a <closing> element tag.

WriteId(Object) WriteId(Object) WriteId(Object) WriteId(Object)

寫入在 SOAP 編碼 id 項目內顯示的 multiRef 屬性。Writes an id attribute that appears in a SOAP-encoded multiRef element.

WriteNamespaceDeclarations(XmlSerializerNamespaces) WriteNamespaceDeclarations(XmlSerializerNamespaces) WriteNamespaceDeclarations(XmlSerializerNamespaces) WriteNamespaceDeclarations(XmlSerializerNamespaces)

寫入命名空間宣告屬性。Writes the namespace declaration attributes.

WriteNullableQualifiedNameEncoded(String, String, XmlQualifiedName, XmlQualifiedName) WriteNullableQualifiedNameEncoded(String, String, XmlQualifiedName, XmlQualifiedName) WriteNullableQualifiedNameEncoded(String, String, XmlQualifiedName, XmlQualifiedName) WriteNullableQualifiedNameEncoded(String, String, XmlQualifiedName, XmlQualifiedName)

寫入主體包含有效 XML 限定名稱的 XML 項目。Writes an XML element whose body contains a valid XML qualified name. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableQualifiedNameLiteral(String, String, XmlQualifiedName) WriteNullableQualifiedNameLiteral(String, String, XmlQualifiedName) WriteNullableQualifiedNameLiteral(String, String, XmlQualifiedName) WriteNullableQualifiedNameLiteral(String, String, XmlQualifiedName)

寫入主體包含有效 XML 限定名稱的 XML 項目。Writes an XML element whose body contains a valid XML qualified name. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableStringEncoded(String, String, String, XmlQualifiedName) WriteNullableStringEncoded(String, String, String, XmlQualifiedName) WriteNullableStringEncoded(String, String, String, XmlQualifiedName) WriteNullableStringEncoded(String, String, String, XmlQualifiedName)

寫入含有字串做為主體的 XML 項目。Writes an XML element that contains a string as the body. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableStringEncodedRaw(String, String, Byte[], XmlQualifiedName) WriteNullableStringEncodedRaw(String, String, Byte[], XmlQualifiedName) WriteNullableStringEncodedRaw(String, String, Byte[], XmlQualifiedName) WriteNullableStringEncodedRaw(String, String, Byte[], XmlQualifiedName)

寫入位元組陣列做為 XML 項目主體。Writes a byte array as the body of an XML element. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableStringEncodedRaw(String, String, String, XmlQualifiedName) WriteNullableStringEncodedRaw(String, String, String, XmlQualifiedName) WriteNullableStringEncodedRaw(String, String, String, XmlQualifiedName) WriteNullableStringEncodedRaw(String, String, String, XmlQualifiedName)

寫入含有字串做為主體的 XML 項目。Writes an XML element that contains a string as the body. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableStringLiteral(String, String, String) WriteNullableStringLiteral(String, String, String) WriteNullableStringLiteral(String, String, String) WriteNullableStringLiteral(String, String, String)

寫入含有字串做為主體的 XML 項目。Writes an XML element that contains a string as the body. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableStringLiteralRaw(String, String, Byte[]) WriteNullableStringLiteralRaw(String, String, Byte[]) WriteNullableStringLiteralRaw(String, String, Byte[]) WriteNullableStringLiteralRaw(String, String, Byte[])

寫入位元組陣列做為 XML 項目主體。Writes a byte array as the body of an XML element. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

WriteNullableStringLiteralRaw(String, String, String) WriteNullableStringLiteralRaw(String, String, String) WriteNullableStringLiteralRaw(String, String, String) WriteNullableStringLiteralRaw(String, String, String)

寫入含有字串做為主體的 XML 項目。Writes an XML element that contains a string as the body. 如果字串的值為 xsi:nil='true',則 XmlWriter 會插入 null 屬性。XmlWriter inserts a xsi:nil='true' attribute if the string's value is null.

WriteNullTagEncoded(String) WriteNullTagEncoded(String) WriteNullTagEncoded(String) WriteNullTagEncoded(String)

xsi:nil='true' 屬性寫入 XML 項目。Writes an XML element with an xsi:nil='true' attribute.

WriteNullTagEncoded(String, String) WriteNullTagEncoded(String, String) WriteNullTagEncoded(String, String) WriteNullTagEncoded(String, String)

xsi:nil='true' 屬性寫入 XML 項目。Writes an XML element with an xsi:nil='true' attribute.

WriteNullTagLiteral(String) WriteNullTagLiteral(String) WriteNullTagLiteral(String) WriteNullTagLiteral(String)

xsi:nil='true' 屬性寫入 XML 項目。Writes an XML element with an xsi:nil='true' attribute.

WriteNullTagLiteral(String, String) WriteNullTagLiteral(String, String) WriteNullTagLiteral(String, String) WriteNullTagLiteral(String, String)

xsi:nil='true' 屬性寫入 XML 項目。Writes an XML element with an xsi:nil='true' attribute.

WritePotentiallyReferencingElement(String, String, Object) WritePotentiallyReferencingElement(String, String, Object) WritePotentiallyReferencingElement(String, String, Object) WritePotentiallyReferencingElement(String, String, Object)

寫入可以包含指定物件之 <multiRef> XML 項目參照的 SOAP 訊息 XML 項目。Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

WritePotentiallyReferencingElement(String, String, Object, Type) WritePotentiallyReferencingElement(String, String, Object, Type) WritePotentiallyReferencingElement(String, String, Object, Type) WritePotentiallyReferencingElement(String, String, Object, Type)

寫入可以包含指定物件之 <multiRef> XML 項目參照的 SOAP 訊息 XML 項目。Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

WritePotentiallyReferencingElement(String, String, Object, Type, Boolean) WritePotentiallyReferencingElement(String, String, Object, Type, Boolean) WritePotentiallyReferencingElement(String, String, Object, Type, Boolean) WritePotentiallyReferencingElement(String, String, Object, Type, Boolean)

寫入可以包含指定物件之 <multiRef> XML 項目參照的 SOAP 訊息 XML 項目。Writes a SOAP message XML element that can contain a reference to a <multiRef> XML element for a given object.

WritePotentiallyReferencingElement(String, String, Object, Type, Boolean, Boolean) WritePotentiallyReferencingElement(String, String, Object, Type, Boolean, Boolean) WritePotentiallyReferencingElement(String, String, Object, Type, Boolean, Boolean) WritePotentiallyReferencingElement(String, String, Object, Type, Boolean, Boolean)

寫入可以包含指定物件之 multiRef XML 項目參照的 SOAP 訊息 XML 項目。Writes a SOAP message XML element that can contain a reference to a multiRef XML element for a given object.

WriteReferencedElements() WriteReferencedElements() WriteReferencedElements() WriteReferencedElements()

將物件序列化成 SOAP 訊息中的 SOAP 編碼 multiRef XML 項目。Serializes objects into SOAP-encoded multiRef XML elements in a SOAP message.

WriteReferencingElement(String, String, Object) WriteReferencingElement(String, String, Object) WriteReferencingElement(String, String, Object) WriteReferencingElement(String, String, Object)

寫入包含指定物件之 multiRef 項目參考的 SOAP 訊息 XML 項目。Writes a SOAP message XML element that contains a reference to a multiRef element for a given object.

WriteReferencingElement(String, String, Object, Boolean) WriteReferencingElement(String, String, Object, Boolean) WriteReferencingElement(String, String, Object, Boolean) WriteReferencingElement(String, String, Object, Boolean)

寫入包含指定物件之 multiRef 項目參考的 SOAP 訊息 XML 項目。Writes a SOAP message XML element that contains a reference to a multiRef element for a given object.

WriteRpcResult(String, String) WriteRpcResult(String, String) WriteRpcResult(String, String) WriteRpcResult(String, String)

將含有指定之限定名稱的 SOAP 1.2 RPC 結果項目寫入其主體中。Writes a SOAP 1.2 RPC result element with a specified qualified name in its body.

WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean)

寫入使用自訂 XML 格式做為 XML 項目的物件。Writes an object that uses custom XML formatting as an XML element.

WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean) WriteSerializable(IXmlSerializable, String, String, Boolean, Boolean)

指示 XmlNode 寫入使用自訂 XML 格式做為 XML 項目的物件。Instructs XmlNode to write an object that uses custom XML formatting as an XML element.

WriteStartDocument() WriteStartDocument() WriteStartDocument() WriteStartDocument()

如果寫入器位於 XML 文件的開頭,則寫入 XML 宣告。Writes the XML declaration if the writer is positioned at the start of an XML document.

WriteStartElement(String) WriteStartElement(String) WriteStartElement(String) WriteStartElement(String)

寫入開頭項目標記,包括任何屬性在內。Writes an opening element tag, including any attributes.

WriteStartElement(String, String) WriteStartElement(String, String) WriteStartElement(String, String) WriteStartElement(String, String)

寫入開頭項目標記,包括任何屬性在內。Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean) WriteStartElement(String, String, Boolean)

寫入開頭項目標記,包括任何屬性在內。Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object) WriteStartElement(String, String, Object) WriteStartElement(String, String, Object) WriteStartElement(String, String, Object)

寫入開頭項目標記,包括任何屬性在內。Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean) WriteStartElement(String, String, Object, Boolean)

寫入開頭項目標記,包括任何屬性在內。Writes an opening element tag, including any attributes.

WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces) WriteStartElement(String, String, Object, Boolean, XmlSerializerNamespaces)

寫入開頭項目標記,包括任何屬性在內。Writes an opening element tag, including any attributes.

WriteTypedPrimitive(String, String, Object, Boolean) WriteTypedPrimitive(String, String, Object, Boolean) WriteTypedPrimitive(String, String, Object, Boolean) WriteTypedPrimitive(String, String, Object, Boolean)

寫入文字主體為簡單 XML 結構描述資料型別之值的 XML 項目。Writes an XML element whose text body is a value of a simple XML Schema data type.

WriteValue(Byte[]) WriteValue(Byte[]) WriteValue(Byte[]) WriteValue(Byte[])

寫入 Base-64 位元組陣列。Writes a base-64 byte array.

WriteValue(String) WriteValue(String) WriteValue(String) WriteValue(String)

寫入指定的字串值。Writes a specified string value.

WriteXmlAttribute(XmlNode) WriteXmlAttribute(XmlNode) WriteXmlAttribute(XmlNode) WriteXmlAttribute(XmlNode)

寫入指定的 XmlNode 做為 XML 屬性。Writes the specified XmlNode as an XML attribute.

WriteXmlAttribute(XmlNode, Object) WriteXmlAttribute(XmlNode, Object) WriteXmlAttribute(XmlNode, Object) WriteXmlAttribute(XmlNode, Object)

寫入指定的 XmlNode 物件做為 XML 屬性。Writes the specified XmlNode object as an XML attribute.

WriteXsiType(String, String) WriteXsiType(String, String) WriteXsiType(String, String) WriteXsiType(String, String)

寫入正要序列化成文件之 XML 項目的 xsi:type 屬性。Writes an xsi:type attribute for an XML element that is being serialized into a document.

適用於

另請參閱