Powershell暴露ParameterizedProperty的值

3

我正在处理一个COM+脚本,但有些地方我不太清楚。我应该如何找出通过parameterizedProperty方法公开的值?我想这一定是一个哈希表或类似的东西。

$comAdmin = New-Object -com ("COMAdmin.COMAdminCatalog.1") 
$applications = $comAdmin.GetCollection("Applications")  
$applications.Populate() 

foreach ($application in $applications) {

    $components = $applications.GetCollection("Components",$application.key)
    $components.Populate()
    foreach ($component in $components)
    {
        # What other values are available besides "DLL"
        $dllName = $component.Value("DLL")
     }
}
PS C:\Users\myself> $component|gm -MemberType ParameterizedProperty


   TypeName: System.__ComObject#{6eb22871-8a19-11d0-81b6-00a0c9231c29}

Name  MemberType            Definition                         
----  ----------            ----------                         
Value ParameterizedProperty Variant Value (string) {get} {set}
1个回答

2

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接