![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Is it possible to create a new type? I'd like to attach a PSScriptMethod called GetType to a PSObject. I'm thinking if my synthetic objects have unique types my code can deal with them like other types using -is, -isnot etc. But I can't just return a string with the type name from GetType. It wants an object of type [system.type] returned. Is it possible to create such an object that '-is' a specific name of my choosing? |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Unable to cast COM object of type 'ADODB.RecordsetClass' to class type 'System.Object[]' | Michel Posseth [MCP] | .NET General | 2 | 03-27-2008 10:04 AM |
| Display actual file type, not description of the type | Doug | Vista file management | 3 | 10-12-2007 01:40 AM |
| Display the actual type, rather than the description of the type | Doug | Vista General | 4 | 10-11-2007 10:42 AM |
| Unable to find type [Drawing.Image]: make sure that the assembly containing this type is loaded | IT Staff | PowerShell | 4 | 08-16-2007 08:55 PM |