the [boolean] turned to be [string] ?


getvmdisktype.ps1

function getvmdisktype{
  [boolean]$blndisktype=$true
    return $blndisktype
}

getvmdisktype.vb

    public function getvmdisktype() boolean
        strresult = runscript(getvmdisktype.ps1)
        return strresult
    end function

error:string "true  " can't turn be 'boolean' . 

why return "$blndisktype" become 'string'? , why there two" "after "true"?

hello.

you call getvmdisktype.ps1 not function, external powershell script. it's output converted [string] when printed stdout.




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file