你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ISerializationWriter.WriteProperty 方法

定义

重载

WriteProperty(ISerializableWithWriter)

写入值 ISerializableWithWriter 字段。

WriteProperty(String, ISerializableWithWriter)

写入 ISerializableWithWriter 字段的名称和值。

WriteProperty(String, IDictionary<String,Double>)

为字符串、字符串作为键、值的 IDictionary 字段写入名称和值。

WriteProperty(String, IDictionary<String,String>)

为字符串、字符串作为键、值的 IDictionary 字段写入名称和值。

WriteProperty(String, IList<ISerializableWithWriter>)

为实现 ISerializableWithWriter 的对象 IList 字段写入名称和值。

WriteProperty(String, IList<String>)

写入字符串的 IList 字段的名称和值。

WriteProperty(String, Nullable<Boolean>)

写入布尔字段的名称和值。

WriteProperty(String, Nullable<DateTimeOffset>)

写入 DateTimeOffset 字段的名称和值。

WriteProperty(String, Nullable<Double>)

写入双精度字段的名称和值。

WriteProperty(String, Nullable<Int32>)

写入 int 字段的名称和值。

WriteProperty(String, Nullable<TimeSpan>)

写入 TimeSpan 字段的名称和值。

WriteProperty(String, String)

写入字符串字段的名称和值。

WriteProperty(ISerializableWithWriter)

写入值 ISerializableWithWriter 字段。

public void WriteProperty (Microsoft.ApplicationInsights.Extensibility.ISerializableWithWriter value);
abstract member WriteProperty : Microsoft.ApplicationInsights.Extensibility.ISerializableWithWriter -> unit
Public Sub WriteProperty (value As ISerializableWithWriter)

参数

适用于

WriteProperty(String, ISerializableWithWriter)

写入 ISerializableWithWriter 字段的名称和值。

public void WriteProperty (string name, Microsoft.ApplicationInsights.Extensibility.ISerializableWithWriter value);
abstract member WriteProperty : string * Microsoft.ApplicationInsights.Extensibility.ISerializableWithWriter -> unit
Public Sub WriteProperty (name As String, value As ISerializableWithWriter)

参数

name
String

适用于

WriteProperty(String, IDictionary<String,Double>)

为字符串、字符串作为键、值的 IDictionary 字段写入名称和值。

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

参数

name
String

适用于

WriteProperty(String, IDictionary<String,String>)

为字符串、字符串作为键、值的 IDictionary 字段写入名称和值。

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

参数

name
String

适用于

WriteProperty(String, IList<ISerializableWithWriter>)

为实现 ISerializableWithWriter 的对象 IList 字段写入名称和值。

public void WriteProperty (string name, System.Collections.Generic.IList<Microsoft.ApplicationInsights.Extensibility.ISerializableWithWriter> items);
abstract member WriteProperty : string * System.Collections.Generic.IList<Microsoft.ApplicationInsights.Extensibility.ISerializableWithWriter> -> unit
Public Sub WriteProperty (name As String, items As IList(Of ISerializableWithWriter))

参数

name
String

适用于

WriteProperty(String, IList<String>)

写入字符串的 IList 字段的名称和值。

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

参数

name
String
items
IList<String>

适用于

WriteProperty(String, Nullable<Boolean>)

写入布尔字段的名称和值。

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))

参数

name
String
value
Nullable<Boolean>

适用于

WriteProperty(String, Nullable<DateTimeOffset>)

写入 DateTimeOffset 字段的名称和值。

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))

参数

name
String

适用于

WriteProperty(String, Nullable<Double>)

写入双精度字段的名称和值。

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))

参数

name
String
value
Nullable<Double>

适用于

WriteProperty(String, Nullable<Int32>)

写入 int 字段的名称和值。

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))

参数

name
String
value
Nullable<Int32>

适用于

WriteProperty(String, Nullable<TimeSpan>)

写入 TimeSpan 字段的名称和值。

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))

参数

name
String

适用于

WriteProperty(String, String)

写入字符串字段的名称和值。

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

参数

name
String
value
String

适用于