This topic has not yet been rated - Rate this topic

PSPrimitiveDictionary Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Provides a hash table that contains keys that are case-insensitive strings and values that can be serialized and deserialized during Windows PowerShell remoting handshakes. This class is introduced in Windows PowerShell 2.0.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
'Usage
Dim instance As PSPrimitiveDictionary

[SerializableAttribute] 
[DefaultMemberAttribute("Item")] 
public sealed class PSPrimitiveDictionary : Hashtable
/** @attribute SerializableAttribute() */ 
/** @attribute DefaultMemberAttribute("Item") */ 
public final class PSPrimitiveDictionary extends Hashtable
SerializableAttribute 
DefaultMemberAttribute("Item") 
public final class PSPrimitiveDictionary extends Hashtable

The primary scenario for using this dictionary is when you are creating a runspace for a remote connection. However, this dictionary can also be used whenever you need a dictionary that is guaranteed to contain only primitive types that can be serialized and deserialized. For more information about creating a runspace, see the RunspaceFactory class.


System.Object
   System.Collections.Hashtable
    System.Management.Automation.PSPrimitiveDictionary
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)