我现在拥有的是:
PS C:\Users\user> $idi=New-Object -ComObject IMAPI2.MsftDiscMaster2.1
PS C:\Users\user> $idi|get-member
TypeName: System.String
Name MemberType Definition
---- ---------- ----------
Clone Method System.Object Clone(), System.Object ICloneable.Clone()
CompareTo Method int CompareTo(System.Object value), int CompareTo(string strB), int IComparab..
Contains Method bool Contains(string value)
CopyTo Method void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int co..
EndsWith Method bool EndsWith(string value), bool EndsWith(string value, System.StringCompari.....
....
....这里是IMAPI的文档,System.String是.net框架的一部分。
在我看来,MS把CLSID搞砸了。
发布于 2015-08-13 15:28:04
从注释切换到这里回答,因为我不能正确格式化输出。
Get成员-InputObject $idi返回:
TypeName: System.__ComObject#{27354130-7f64-5b0f-8f00-5d77afbe261e}
Name MemberType Definition
---- ---------- ----------
Item ParameterizedProperty string Item (int) {get}
Count Property int Count () {get}
IsSupportedEnvironment Property bool IsSupportedEnvironment () {get}这似乎是正确的,计数/支持环境正确地识别我的笔记本中没有光驱。
https://stackoverflow.com/questions/31988718
复制相似问题