devil20 发表于 2018-9-3 06:46:16

PowerShell输出结果的处理

TypeName: Microsoft.Exchange.Data.ByteQuantifiedSize  NameMemberType Definition
  -------------- ----------
  CompareTo Method int CompareTo(Microsoft.Exchange.Data.ByteQuantifiedSize other)
  Equals Method bool Equals(System.Object obj), bool Equals(Microsoft.Exchange.Data.ByteQuantifiedSize other)
  GetHashCode Method int GetHashCode()
  GetType Method type GetType()
  RoundUpToUnit Method System.UInt64 RoundUpToUnit(Microsoft.Exchange.Data.ByteQuantifiedSize+Quantifier quantifier)
  ToBytes Method System.UInt64 ToBytes()
  ToGBMethod System.UInt64 ToGB()
  ToKBMethod System.UInt64 ToKB()
  ToMBMethod System.UInt64 ToMB()
  ToString Method string ToString(), string ToString(string format), string ToString(string format, System.IF...
  ToTBMethod System.UInt64 ToTB()
  3) 数据处理过程:
  将结果输出为ToGB
  C:\MailBoxOperate\Function>$Database.ToGB()
  56
  当然也可输入出ToBytes
  C:\MailBoxOperate\Function>$Database.Tobytes()
  60272738304

页: [1]
查看完整版本: PowerShell输出结果的处理