Freigeben über


IJsonWriter.WriteProperty Method

Definition

Overloads

WriteProperty(String, IJsonSerializable)

Writes an IJsonSerializable object property.

WriteProperty(String, IDictionary<String,Double>)

Writes a IDictionary<TKey, TValue> property.

WriteProperty(String, IDictionary<String,String>)

Writes a IDictionary<TKey, TValue> property.

WriteProperty(String, Nullable<Boolean>)

Writes a Boolean property.

WriteProperty(String, Nullable<DateTimeOffset>)

Writes a DateTimeOffset property.

WriteProperty(String, Nullable<Double>)

Writes a Double property.

WriteProperty(String, Nullable<Int32>)

Writes a Int32 property.

WriteProperty(String, Nullable<TimeSpan>)

Writes a TimeSpan property.

WriteProperty(String, String)

Writes a String property.

WriteProperty(String, IJsonSerializable)

Writes an IJsonSerializable object property.

public:
 void WriteProperty(System::String ^ name, Microsoft::VisualStudio::ApplicationInsights::DataContracts::IJsonSerializable ^ value);
public void WriteProperty (string name, Microsoft.VisualStudio.ApplicationInsights.DataContracts.IJsonSerializable value);
abstract member WriteProperty : string * Microsoft.VisualStudio.ApplicationInsights.DataContracts.IJsonSerializable -> unit
Public Sub WriteProperty (name As String, value As IJsonSerializable)

Parameters

name
String

Applies to

WriteProperty(String, IDictionary<String,Double>)

Writes a IDictionary<TKey, TValue> property.

public:
 void WriteProperty(System::String ^ name, System::Collections::Generic::IDictionary<System::String ^, double> ^ values);
public void WriteProperty (string name, System.Collections.Generic.IDictionary<string,double> values);
abstract member WriteProperty : string * System.Collections.Generic.IDictionary<string, double> -> unit
Public Sub WriteProperty (name As String, values As IDictionary(Of String, Double))

Parameters

name
String

Applies to

WriteProperty(String, IDictionary<String,String>)

Writes a IDictionary<TKey, TValue> property.

public:
 void WriteProperty(System::String ^ name, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ values);
public void WriteProperty (string name, System.Collections.Generic.IDictionary<string,string> values);
abstract member WriteProperty : string * System.Collections.Generic.IDictionary<string, string> -> unit
Public Sub WriteProperty (name As String, values As IDictionary(Of String, String))

Parameters

name
String

Applies to

WriteProperty(String, Nullable<Boolean>)

Writes a Boolean property.

public:
 void WriteProperty(System::String ^ name, Nullable<bool> value);
public void WriteProperty (string name, bool? value);
abstract member WriteProperty : string * Nullable<bool> -> unit
Public Sub WriteProperty (name As String, value As Nullable(Of Boolean))

Parameters

name
String
value
Nullable<Boolean>

Applies to

WriteProperty(String, Nullable<DateTimeOffset>)

Writes a DateTimeOffset property.

public:
 void WriteProperty(System::String ^ name, Nullable<DateTimeOffset> value);
public void WriteProperty (string name, DateTimeOffset? value);
abstract member WriteProperty : string * Nullable<DateTimeOffset> -> unit
Public Sub WriteProperty (name As String, value As Nullable(Of DateTimeOffset))

Parameters

name
String

Applies to

WriteProperty(String, Nullable<Double>)

Writes a Double property.

public:
 void WriteProperty(System::String ^ name, Nullable<double> value);
public void WriteProperty (string name, double? value);
abstract member WriteProperty : string * Nullable<double> -> unit
Public Sub WriteProperty (name As String, value As Nullable(Of Double))

Parameters

name
String
value
Nullable<Double>

Applies to

WriteProperty(String, Nullable<Int32>)

Writes a Int32 property.

public:
 void WriteProperty(System::String ^ name, Nullable<int> value);
public void WriteProperty (string name, int? value);
abstract member WriteProperty : string * Nullable<int> -> unit
Public Sub WriteProperty (name As String, value As Nullable(Of Integer))

Parameters

name
String
value
Nullable<Int32>

Applies to

WriteProperty(String, Nullable<TimeSpan>)

Writes a TimeSpan property.

public:
 void WriteProperty(System::String ^ name, Nullable<TimeSpan> value);
public void WriteProperty (string name, TimeSpan? value);
abstract member WriteProperty : string * Nullable<TimeSpan> -> unit
Public Sub WriteProperty (name As String, value As Nullable(Of TimeSpan))

Parameters

name
String

Applies to

WriteProperty(String, String)

Writes a String property.

public:
 void WriteProperty(System::String ^ name, System::String ^ value);
public void WriteProperty (string name, string value);
abstract member WriteProperty : string * string -> unit
Public Sub WriteProperty (name As String, value As String)

Parameters

name
String
value
String

Applies to