49 references to SerializationFormat
netstandard (1)
netstandard.cs (1)
569[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SerializationFormat))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
186[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SerializationFormat))]
System.Data.Common (47)
System\Data\DataException.cs (2)
649public static Exception InvalidRemotingFormat(SerializationFormat mode) => _InvalidEnumArgumentException(mode); 650public static Exception SerializationFormatBinaryNotSupported() => _InvalidEnumArgumentException(SerializationFormat.Binary);
System\Data\DataSet.cs (27)
69private SerializationFormat _remotingFormat = SerializationFormat.Xml; 110[DefaultValue(SerializationFormat.Xml)] 111public SerializationFormat RemotingFormat 118case SerializationFormat.Xml: 121case SerializationFormat.Binary: 162SerializationFormat remotingFormat = SerializationFormat.Xml; 170remotingFormat = (SerializationFormat)e.Value!; 175return (remotingFormat == SerializationFormat.Binary); 233SerializationFormat remotingFormat = SerializationFormat.Xml; 240remotingFormat = (SerializationFormat)e.Value!; 268SerializationFormat remotingFormat = SerializationFormat.Xml; 277remotingFormat = (SerializationFormat)e.Value!; 285if (remotingFormat == SerializationFormat.Binary && 300if (remotingFormat == SerializationFormat.Xml && !ConstructSchema) 316SerializationFormat remotingFormat = RemotingFormat; 326private void SerializeDataSet(SerializationInfo info, StreamingContext context, SerializationFormat remotingFormat) 332if (SerializationFormat.Xml != remotingFormat) 344if (remotingFormat != SerializationFormat.Xml) 413internal void DeserializeDataSet(SerializationInfo info, StreamingContext context, SerializationFormat remotingFormat, SchemaSerializationMode schemaSerializationMode) 424private void DeserializeDataSetSchema(SerializationInfo info, StreamingContext context, SerializationFormat remotingFormat, SchemaSerializationMode schemaSerializationMode) 426if (remotingFormat != SerializationFormat.Xml) 486private void DeserializeDataSetData(SerializationInfo info, SerializationFormat remotingFormat) 488if (remotingFormat != SerializationFormat.Xml)
System\Data\DataTable.cs (18)
156private SerializationFormat _remotingFormat = SerializationFormat.Xml; 204SerializationFormat remotingFormat = SerializationFormat.Xml; 211remotingFormat = (SerializationFormat)e.Value!; 216if (remotingFormat == SerializationFormat.Binary && 233SerializationFormat remotingFormat = RemotingFormat; 241private void SerializeDataTable(SerializationInfo info, bool isSingleTable, SerializationFormat remotingFormat) 246if (SerializationFormat.Xml != remotingFormat) 251if (remotingFormat != SerializationFormat.Xml) 279Debug.Assert(ds.RemotingFormat == SerializationFormat.Xml, "RemotingFormat must be SerializationFormat.Xml"); 306internal void DeserializeDataTable(SerializationInfo info, bool isSingleTable, SerializationFormat remotingFormat) 308if (remotingFormat != SerializationFormat.Xml) 1139[DefaultValue(SerializationFormat.Xml)] 1140public SerializationFormat RemotingFormat 1147case SerializationFormat.Xml: 1150case SerializationFormat.Binary: 6484SerializationFormat cachedRemotingFormat = RemotingFormat;