XmlMediaTypeFormatter.UseDataContractSerializer Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets or sets a value indicating whether to use DataContractSerializer by default.
Namespace: System.Net.Http.Formatting
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Property UseDataContractSerializer As Boolean
public bool UseDataContractSerializer { get; set; }
public:
property bool UseDataContractSerializer {
bool get ();
void set (bool value);
}
member UseDataContractSerializer : bool with get, set
function get UseDataContractSerializer () : boolean
function set UseDataContractSerializer (value : boolean)
Property Value
Type: System.Boolean
trueDataContractSerializerfalsefalse
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.