XmlSerializationWriter.WriteTypedPrimitive Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes an XML element whose text body is a value of a simple XML Schema data type.
This API supports the product infrastructure and is not intended to be used directly from your code.
protected:
void WriteTypedPrimitive(System::String ^ name, System::String ^ ns, System::Object ^ o, bool xsiType);
protected void WriteTypedPrimitive (string? name, string? ns, object o, bool xsiType);
protected void WriteTypedPrimitive (string name, string ns, object o, bool xsiType);
member this.WriteTypedPrimitive : string * string * obj * bool -> unit
Protected Sub WriteTypedPrimitive (name As String, ns As String, o As Object, xsiType As Boolean)
Parameters
- name
- String
The local name of the element to write.
- ns
- String
The namespace of the element to write.
- o
- Object
The object to be serialized in the element body.
- xsiType
- Boolean
true
if the XML element explicitly specifies the text value's type using the xsi:type
attribute; otherwise, false
.
Remarks
The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.
The xsi:type
attribute explicitly indicates the XML Schema data type. The prefix xsi
refers to the XML Schema instance namespace.
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示