C# Class System.Xml.Serialization.XmlSerializationWriter

Inheritance: XmlSerializationGeneratedCode
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes protégées

Méthode Description
AddWriteCallback ( Type type, string typeName, string typeNs, XmlSerializationWriteCallback callback ) : void
CreateChoiceIdentifierValueException ( string value, string identifier, string name, string ns ) : Exception
CreateInvalidAnyTypeException ( Type type ) : Exception
CreateInvalidAnyTypeException ( object o ) : Exception
CreateInvalidChoiceIdentifierValueException ( string type, string identifier ) : Exception
CreateInvalidEnumValueException ( object value, string typeName ) : Exception
CreateMismatchChoiceException ( string value, string elementName, string enumValue ) : Exception
CreateUnknownAnyElementException ( string name, string ns ) : Exception
CreateUnknownTypeException ( Type type ) : Exception
CreateUnknownTypeException ( object o ) : Exception
FromByteArrayBase64 ( byte value ) : byte[]
FromByteArrayHex ( byte value ) : string
FromChar ( char value ) : string
FromDate ( System.DateTime value ) : string
FromDateTime ( System.DateTime value ) : string
FromEnum ( long value, string values, long ids ) : string
FromEnum ( long value, string values, long ids, string typeName ) : string
FromTime ( System.DateTime value ) : string
FromXmlNCName ( string ncName ) : string
FromXmlName ( string name ) : string
FromXmlNmToken ( string nmToken ) : string
FromXmlNmTokens ( string nmTokens ) : string
FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName ) : string
FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName, bool ignoreEmpty ) : string
InitCallbacks ( ) : void
ResolveDynamicAssembly ( string assemblyFullName ) : Assembly
TopLevelElement ( ) : void
WriteAttribute ( string localName, byte value ) : void
WriteAttribute ( string localName, string value ) : void
WriteAttribute ( string localName, string ns, byte value ) : void
WriteAttribute ( string localName, string ns, string value ) : void
WriteAttribute ( string prefix, string localName, string ns, string value ) : void
WriteElementEncoded ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
WriteElementLiteral ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
WriteElementQualifiedName ( String localName, String ns, XmlQualifiedName value ) : void
WriteElementQualifiedName ( String localName, XmlQualifiedName value ) : void
WriteElementQualifiedName ( string localName, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
WriteElementQualifiedName ( string localName, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
WriteElementString ( String localName, String value ) : void
WriteElementString ( String localName, String ns, String value ) : void
WriteElementString ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
WriteElementString ( String localName, String value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, String value ) : void
WriteElementStringRaw ( String localName, String ns, String value ) : void
WriteElementStringRaw ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, String value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, String ns, byte value ) : void
WriteElementStringRaw ( String localName, String ns, byte value, XmlQualifiedName xsiType ) : void
WriteElementStringRaw ( String localName, byte value ) : void
WriteElementStringRaw ( String localName, byte value, XmlQualifiedName xsiType ) : void
WriteEmptyTag ( string name ) : void
WriteEmptyTag ( string name, string ns ) : void
WriteEndElement ( ) : void
WriteEndElement ( object o ) : void
WriteId ( object o ) : void
WriteNamespaceDeclarations ( XmlSerializerNamespaces xmlns ) : void
WriteNullTagEncoded ( string name ) : void
WriteNullTagEncoded ( string name, string ns ) : void
WriteNullTagLiteral ( string name ) : void
WriteNullTagLiteral ( string name, string ns ) : void
WriteNullableQualifiedNameEncoded ( string name, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
WriteNullableQualifiedNameLiteral ( string name, string ns, XmlQualifiedName value ) : void
WriteNullableStringEncoded ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
WriteNullableStringEncodedRaw ( string name, string ns, byte value, XmlQualifiedName xsiType ) : void
WriteNullableStringEncodedRaw ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
WriteNullableStringLiteral ( string name, string ns, string value ) : void
WriteNullableStringLiteralRaw ( string name, string ns, byte value ) : void
WriteNullableStringLiteralRaw ( string name, string ns, string value ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference ) : void
WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference, bool isNullable ) : void
WriteReferencedElements ( ) : void
WriteReferencingElement ( string n, string ns, object o ) : void
WriteReferencingElement ( string n, string ns, object o, bool isNullable ) : void
WriteRpcResult ( string name, string ns ) : void
WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable ) : void
WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable, bool wrapped ) : void
WriteStartDocument ( ) : void
WriteStartElement ( string name ) : void
WriteStartElement ( string name, string ns ) : void
WriteStartElement ( string name, string ns, bool writePrefixed ) : void
WriteStartElement ( string name, string ns, object o ) : void
WriteStartElement ( string name, string ns, object o, bool writePrefixed ) : void
WriteStartElement ( string name, string ns, object o, bool writePrefixed, XmlSerializerNamespaces xmlns ) : void
WriteTypedPrimitive ( string name, string ns, object o, bool xsiType ) : void
WriteValue ( byte value ) : void
WriteValue ( string value ) : void
WriteXmlAttribute ( XmlNode node ) : void
WriteXmlAttribute ( XmlNode node, object container ) : void
WriteXsiType ( string name, string ns ) : void

Private Methods

Méthode Description
GetId ( object o, bool addToReferencesList ) : string
GetPrimitiveTypeName ( Type type ) : XmlQualifiedName
GetPrimitiveTypeName ( Type type, bool throwIfUnknown ) : XmlQualifiedName
GetPrimitiveTypeNameInternal ( Type type ) : XmlQualifiedName
GetQualifiedName ( string name, string ns ) : string
GetTypeEntry ( Type t ) : TypeEntry
Init ( XmlWriter w, XmlSerializerNamespaces namespaces, string encodingStyle, string idBase ) : void
Init ( XmlWriter w, XmlSerializerNamespaces namespaces, string encodingStyle, string idBase, TempAssembly tempAssembly ) : void
IsIdDefined ( object o ) : bool
ListUsedPrefixes ( string>.Dictionary nsList, string prefix ) : HashSet
NextPrefix ( ) : string
WriteArray ( string name, string ns, object o, Type type ) : void
WriteElement ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
WriteId ( object o, bool addToReferencesList ) : void
WriteReferencedElement ( object o, Type ambientType ) : void
WriteReferencedElement ( string name, string ns, object o, Type ambientType ) : void

Method Details

AddWriteCallback() protected méthode

protected AddWriteCallback ( Type type, string typeName, string typeNs, XmlSerializationWriteCallback callback ) : void
type System.Type
typeName string
typeNs string
callback XmlSerializationWriteCallback
Résultat void

CreateChoiceIdentifierValueException() protected méthode

protected CreateChoiceIdentifierValueException ( string value, string identifier, string name, string ns ) : Exception
value string
identifier string
name string
ns string
Résultat System.Exception

CreateInvalidAnyTypeException() protected méthode

protected CreateInvalidAnyTypeException ( Type type ) : Exception
type System.Type
Résultat System.Exception

CreateInvalidAnyTypeException() protected méthode

protected CreateInvalidAnyTypeException ( object o ) : Exception
o object
Résultat System.Exception

CreateInvalidChoiceIdentifierValueException() protected méthode

protected CreateInvalidChoiceIdentifierValueException ( string type, string identifier ) : Exception
type string
identifier string
Résultat System.Exception

CreateInvalidEnumValueException() protected méthode

protected CreateInvalidEnumValueException ( object value, string typeName ) : Exception
value object
typeName string
Résultat System.Exception

CreateMismatchChoiceException() protected méthode

protected CreateMismatchChoiceException ( string value, string elementName, string enumValue ) : Exception
value string
elementName string
enumValue string
Résultat System.Exception

CreateUnknownAnyElementException() protected méthode

protected CreateUnknownAnyElementException ( string name, string ns ) : Exception
name string
ns string
Résultat System.Exception

CreateUnknownTypeException() protected méthode

protected CreateUnknownTypeException ( Type type ) : Exception
type System.Type
Résultat System.Exception

CreateUnknownTypeException() protected méthode

protected CreateUnknownTypeException ( object o ) : Exception
o object
Résultat System.Exception

FromByteArrayBase64() protected static méthode

protected static FromByteArrayBase64 ( byte value ) : byte[]
value byte
Résultat byte[]

FromByteArrayHex() protected static méthode

protected static FromByteArrayHex ( byte value ) : string
value byte
Résultat string

FromChar() protected static méthode

protected static FromChar ( char value ) : string
value char
Résultat string

FromDate() protected static méthode

protected static FromDate ( System.DateTime value ) : string
value System.DateTime
Résultat string

FromDateTime() protected static méthode

protected static FromDateTime ( System.DateTime value ) : string
value System.DateTime
Résultat string

FromEnum() protected static méthode

protected static FromEnum ( long value, string values, long ids ) : string
value long
values string
ids long
Résultat string

FromEnum() protected static méthode

protected static FromEnum ( long value, string values, long ids, string typeName ) : string
value long
values string
ids long
typeName string
Résultat string

FromTime() protected static méthode

protected static FromTime ( System.DateTime value ) : string
value System.DateTime
Résultat string

FromXmlNCName() protected static méthode

protected static FromXmlNCName ( string ncName ) : string
ncName string
Résultat string

FromXmlName() protected static méthode

protected static FromXmlName ( string name ) : string
name string
Résultat string

FromXmlNmToken() protected static méthode

protected static FromXmlNmToken ( string nmToken ) : string
nmToken string
Résultat string

FromXmlNmTokens() protected static méthode

protected static FromXmlNmTokens ( string nmTokens ) : string
nmTokens string
Résultat string

FromXmlQualifiedName() protected méthode

protected FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName ) : string
xmlQualifiedName XmlQualifiedName
Résultat string

FromXmlQualifiedName() protected méthode

protected FromXmlQualifiedName ( XmlQualifiedName xmlQualifiedName, bool ignoreEmpty ) : string
xmlQualifiedName XmlQualifiedName
ignoreEmpty bool
Résultat string

InitCallbacks() protected abstract méthode

protected abstract InitCallbacks ( ) : void
Résultat void

ResolveDynamicAssembly() protected static méthode

protected static ResolveDynamicAssembly ( string assemblyFullName ) : Assembly
assemblyFullName string
Résultat System.Reflection.Assembly

TopLevelElement() protected méthode

protected TopLevelElement ( ) : void
Résultat void

WriteAttribute() protected méthode

protected WriteAttribute ( string localName, byte value ) : void
localName string
value byte
Résultat void

WriteAttribute() protected méthode

protected WriteAttribute ( string localName, string value ) : void
localName string
value string
Résultat void

WriteAttribute() protected méthode

protected WriteAttribute ( string localName, string ns, byte value ) : void
localName string
ns string
value byte
Résultat void

WriteAttribute() protected méthode

protected WriteAttribute ( string localName, string ns, string value ) : void
localName string
ns string
value string
Résultat void

WriteAttribute() protected méthode

protected WriteAttribute ( string prefix, string localName, string ns, string value ) : void
prefix string
localName string
ns string
value string
Résultat void

WriteElementEncoded() protected méthode

protected WriteElementEncoded ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
node XmlNode
name string
ns string
isNullable bool
any bool
Résultat void

WriteElementLiteral() protected méthode

protected WriteElementLiteral ( XmlNode node, string name, string ns, bool isNullable, bool any ) : void
node XmlNode
name string
ns string
isNullable bool
any bool
Résultat void

WriteElementQualifiedName() protected méthode

protected WriteElementQualifiedName ( String localName, String ns, XmlQualifiedName value ) : void
localName String
ns String
value XmlQualifiedName
Résultat void

WriteElementQualifiedName() protected méthode

protected WriteElementQualifiedName ( String localName, XmlQualifiedName value ) : void
localName String
value XmlQualifiedName
Résultat void

WriteElementQualifiedName() protected méthode

protected WriteElementQualifiedName ( string localName, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
localName string
value XmlQualifiedName
xsiType XmlQualifiedName
Résultat void

WriteElementQualifiedName() protected méthode

protected WriteElementQualifiedName ( string localName, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
localName string
ns string
value XmlQualifiedName
xsiType XmlQualifiedName
Résultat void

WriteElementString() protected méthode

protected WriteElementString ( String localName, String value ) : void
localName String
value String
Résultat void

WriteElementString() protected méthode

protected WriteElementString ( String localName, String ns, String value ) : void
localName String
ns String
value String
Résultat void

WriteElementString() protected méthode

protected WriteElementString ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
localName String
ns String
value String
xsiType XmlQualifiedName
Résultat void

WriteElementString() protected méthode

protected WriteElementString ( String localName, String value, XmlQualifiedName xsiType ) : void
localName String
value String
xsiType XmlQualifiedName
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, String value ) : void
localName String
value String
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, String ns, String value ) : void
localName String
ns String
value String
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, String ns, String value, XmlQualifiedName xsiType ) : void
localName String
ns String
value String
xsiType XmlQualifiedName
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, String value, XmlQualifiedName xsiType ) : void
localName String
value String
xsiType XmlQualifiedName
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, String ns, byte value ) : void
localName String
ns String
value byte
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, String ns, byte value, XmlQualifiedName xsiType ) : void
localName String
ns String
value byte
xsiType XmlQualifiedName
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, byte value ) : void
localName String
value byte
Résultat void

WriteElementStringRaw() protected méthode

protected WriteElementStringRaw ( String localName, byte value, XmlQualifiedName xsiType ) : void
localName String
value byte
xsiType XmlQualifiedName
Résultat void

WriteEmptyTag() protected méthode

protected WriteEmptyTag ( string name ) : void
name string
Résultat void

WriteEmptyTag() protected méthode

protected WriteEmptyTag ( string name, string ns ) : void
name string
ns string
Résultat void

WriteEndElement() protected méthode

protected WriteEndElement ( ) : void
Résultat void

WriteEndElement() protected méthode

protected WriteEndElement ( object o ) : void
o object
Résultat void

WriteId() protected méthode

protected WriteId ( object o ) : void
o object
Résultat void

WriteNamespaceDeclarations() protected méthode

protected WriteNamespaceDeclarations ( XmlSerializerNamespaces xmlns ) : void
xmlns XmlSerializerNamespaces
Résultat void

WriteNullTagEncoded() protected méthode

protected WriteNullTagEncoded ( string name ) : void
name string
Résultat void

WriteNullTagEncoded() protected méthode

protected WriteNullTagEncoded ( string name, string ns ) : void
name string
ns string
Résultat void

WriteNullTagLiteral() protected méthode

protected WriteNullTagLiteral ( string name ) : void
name string
Résultat void

WriteNullTagLiteral() protected méthode

protected WriteNullTagLiteral ( string name, string ns ) : void
name string
ns string
Résultat void

WriteNullableQualifiedNameEncoded() protected méthode

protected WriteNullableQualifiedNameEncoded ( string name, string ns, XmlQualifiedName value, XmlQualifiedName xsiType ) : void
name string
ns string
value XmlQualifiedName
xsiType XmlQualifiedName
Résultat void

WriteNullableQualifiedNameLiteral() protected méthode

protected WriteNullableQualifiedNameLiteral ( string name, string ns, XmlQualifiedName value ) : void
name string
ns string
value XmlQualifiedName
Résultat void

WriteNullableStringEncoded() protected méthode

protected WriteNullableStringEncoded ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
name string
ns string
value string
xsiType XmlQualifiedName
Résultat void

WriteNullableStringEncodedRaw() protected méthode

protected WriteNullableStringEncodedRaw ( string name, string ns, byte value, XmlQualifiedName xsiType ) : void
name string
ns string
value byte
xsiType XmlQualifiedName
Résultat void

WriteNullableStringEncodedRaw() protected méthode

protected WriteNullableStringEncodedRaw ( string name, string ns, string value, XmlQualifiedName xsiType ) : void
name string
ns string
value string
xsiType XmlQualifiedName
Résultat void

WriteNullableStringLiteral() protected méthode

protected WriteNullableStringLiteral ( string name, string ns, string value ) : void
name string
ns string
value string
Résultat void

WriteNullableStringLiteralRaw() protected méthode

protected WriteNullableStringLiteralRaw ( string name, string ns, byte value ) : void
name string
ns string
value byte
Résultat void

WriteNullableStringLiteralRaw() protected méthode

protected WriteNullableStringLiteralRaw ( string name, string ns, string value ) : void
name string
ns string
value string
Résultat void

WritePotentiallyReferencingElement() protected méthode

protected WritePotentiallyReferencingElement ( string n, string ns, object o ) : void
n string
ns string
o object
Résultat void

WritePotentiallyReferencingElement() protected méthode

protected WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType ) : void
n string
ns string
o object
ambientType System.Type
Résultat void

WritePotentiallyReferencingElement() protected méthode

protected WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference ) : void
n string
ns string
o object
ambientType System.Type
suppressReference bool
Résultat void

WritePotentiallyReferencingElement() protected méthode

protected WritePotentiallyReferencingElement ( string n, string ns, object o, Type ambientType, bool suppressReference, bool isNullable ) : void
n string
ns string
o object
ambientType System.Type
suppressReference bool
isNullable bool
Résultat void

WriteReferencedElements() protected méthode

protected WriteReferencedElements ( ) : void
Résultat void

WriteReferencingElement() protected méthode

protected WriteReferencingElement ( string n, string ns, object o ) : void
n string
ns string
o object
Résultat void

WriteReferencingElement() protected méthode

protected WriteReferencingElement ( string n, string ns, object o, bool isNullable ) : void
n string
ns string
o object
isNullable bool
Résultat void

WriteRpcResult() protected méthode

protected WriteRpcResult ( string name, string ns ) : void
name string
ns string
Résultat void

WriteSerializable() protected méthode

protected WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable ) : void
serializable IXmlSerializable
name string
ns string
isNullable bool
Résultat void

WriteSerializable() protected méthode

protected WriteSerializable ( IXmlSerializable serializable, string name, string ns, bool isNullable, bool wrapped ) : void
serializable IXmlSerializable
name string
ns string
isNullable bool
wrapped bool
Résultat void

WriteStartDocument() protected méthode

protected WriteStartDocument ( ) : void
Résultat void

WriteStartElement() protected méthode

protected WriteStartElement ( string name ) : void
name string
Résultat void

WriteStartElement() protected méthode

protected WriteStartElement ( string name, string ns ) : void
name string
ns string
Résultat void

WriteStartElement() protected méthode

protected WriteStartElement ( string name, string ns, bool writePrefixed ) : void
name string
ns string
writePrefixed bool
Résultat void

WriteStartElement() protected méthode

protected WriteStartElement ( string name, string ns, object o ) : void
name string
ns string
o object
Résultat void

WriteStartElement() protected méthode

protected WriteStartElement ( string name, string ns, object o, bool writePrefixed ) : void
name string
ns string
o object
writePrefixed bool
Résultat void

WriteStartElement() protected méthode

protected WriteStartElement ( string name, string ns, object o, bool writePrefixed, XmlSerializerNamespaces xmlns ) : void
name string
ns string
o object
writePrefixed bool
xmlns XmlSerializerNamespaces
Résultat void

WriteTypedPrimitive() protected méthode

protected WriteTypedPrimitive ( string name, string ns, object o, bool xsiType ) : void
name string
ns string
o object
xsiType bool
Résultat void

WriteValue() protected méthode

protected WriteValue ( byte value ) : void
value byte
Résultat void

WriteValue() protected méthode

protected WriteValue ( string value ) : void
value string
Résultat void

WriteXmlAttribute() protected méthode

protected WriteXmlAttribute ( XmlNode node ) : void
node XmlNode
Résultat void

WriteXmlAttribute() protected méthode

protected WriteXmlAttribute ( XmlNode node, object container ) : void
node XmlNode
container object
Résultat void

WriteXsiType() protected méthode

protected WriteXsiType ( string name, string ns ) : void
name string
ns string
Résultat void