ConvertTo(Object, Type, IFormatProvider, Boolean) Method Reference Feedback Definition Namespace: Microsoft.Azure.PowerShell.Cmdlets.Logz.Models Assembly: Az.Logz.private.dll NotImplemented -- this will return null C# 複製 public override object ConvertTo (object sourceValue, T...
public override object ConvertTo (object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase); Parameters sourceValue Object the Object to convert from destinationType Type the Type to convert to formatProvider IFormatProvider not used by this Ty...
Convert an object to JSON string. C# Kopieren public static string ConvertToJson (object objectToProcess, in Microsoft.PowerShell.Commands.JsonObject.ConvertToJsonContext context); Parameters objectToProcess Object context JsonObject.ConvertToJsonContext Returns String Applies to ProduktVersionen ...
public override object ConvertTo (object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase); Parameters sourceValue Object destinationType Type formatProvider IFormatProvider ignoreCase Boolean Returns Object Applies to 产品版本 Azure - PowerShel...
The ConvertTo-Json cmdlet converts any .NET object to a string in JavaScript Object Notation (JSON) format. The properties are converted to field names, the field values are converted to property values, and the methods are removed. Note As of PowerShel
ConvertTo-Html-InputObject(Get-Date) 此命令创建用来显示当前日期的属性的 HTML 页。 它使用InputObject参数将Get-Date命令的结果提交到ConvertTo-Htmlcmdlet。 示例2:创建一个网页来显示 PowerShell 别名 PowerShell Get-Alias|ConvertTo-Html|Out-Filealiases.htmInvoke-Itemaliases.htm ...
在PowerShell 7.2 及更高版本中,转换使用Add-Member或Select-Object添加了附加属性的哈希表时,附加属性也会作为标头添加到 CSV 输出中。 PowerShell $allPeople|Add-Member-NameExtraProp-Value42$allPeople|ConvertTo-Csv"Name","Number","ExtraProp""John Smith","1","42""Jane Smith","2","42" ...
PSCustomObject OrderedHashtable 备注 此cmdlet 是使用Newtonsoft Json.NET实施的。 从PowerShell 6 开始,ConvertTo-Json尝试将时间戳格式的字符串转换为DateTime值。 转换后的值是一个[datetime]实例,其Kind属性设置如下: Unspecified,如果输入字符串中没有时区信息。
public override object ConvertTo (object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase); Parameters sourceValue Object destinationType Type formatProvider IFormatProvider ignoreCase Boolean Returns Object Applies to ProductVersions Azure - PowerShell Comman...
public override object ConvertTo (object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase); Parameters sourceValue Object the Object to convert from destinationType Type the Type to convert to formatProvider IFormatProvider not used by this TypeConve...