DataObject.SetDataAsJson 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.
Overloads
SetDataAsJson<T>(T)
public:
generic <typename T>
void SetDataAsJson(T data);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses default System.Text.Json behavior which is not trim-compatible.")]
public void SetDataAsJson<T>(T data);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses default System.Text.Json behavior which is not trim-compatible.")>]
member this.SetDataAsJson : 'T -> unit
Public Sub SetDataAsJson(Of T) (data As T)
Type Parameters
- T
Parameters
- data
- T
- Attributes
Applies to
SetDataAsJson<T>(String, T)
public:
generic <typename T>
void SetDataAsJson(System::String ^ format, T data);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses default System.Text.Json behavior which is not trim-compatible.")]
public void SetDataAsJson<T>(string format, T data);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Uses default System.Text.Json behavior which is not trim-compatible.")>]
member this.SetDataAsJson : string * 'T -> unit
Public Sub SetDataAsJson(Of T) (format As String, data As T)
Type Parameters
- T
Parameters
- format
- String
- data
- T
- Attributes