System.Runtime.Serialization.DataContractAttribute

E697440

System.Runtime.Serialization.DataContractAttribute is a .NET attribute used to mark classes or structures as serializable with the DataContractSerializer, enabling control over how types are serialized and deserialized.

Try in SPARQL Jump to: Statements Referenced by

Statements (48)

Predicate Object
instanceOf .NET attribute
attribute class
serialization attribute
allowMultiple false
appliesTo class
enum
interface
struct
attributeUsage AttributeTargets.Class
AttributeTargets.Enum
AttributeTargets.Interface
AttributeTargets.Struct
controls data contract name
data contract namespace
reference-preserving behavior
defaultValue(IsReference) false
definedInAssembly System.Runtime.Serialization.dll NERFINISHED
System.Runtime.dll NERFINISHED
mscorlib.dll
definedInNamespace System.Runtime.Serialization NERFINISHED
documentationUrl https://learn.microsoft.com/dotnet/api/system.runtime.serialization.datacontractattribute
hasProperty IsNameSetExplicitly
IsNamespaceSetExplicitly
IsReference
Name
Namespace
inherited false
inheritsFrom System.Attribute NERFINISHED
introducedIn .NET Framework 3.0 NERFINISHED
isClass true
isPartOf Windows Communication Foundation data contract model NERFINISHED
isPublic true
isSealed true
language C#
propertyType(IsNameSetExplicitly) System.Boolean
propertyType(IsNamespaceSetExplicitly) System.Boolean
propertyType(IsReference) System.Boolean
propertyType(Name) System.String NERFINISHED
propertyType(Namespace) System.String
serializationModel opt-in
supportedIn .NET 5+
.NET Core NERFINISHED
.NET Framework NERFINISHED
usedBy System.Runtime.Serialization.DataContractSerializer NERFINISHED
usedFor controlling deserialization
controlling serialization
marking types as data contracts
usedWith System.Runtime.Serialization.DataMemberAttribute

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

C# attributes exampleAttribute System.Runtime.Serialization.DataContractAttribute