KeyValuePair Class

Definition

A map to describe the settings of an action.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.KeyValuePairTypeConverter))]
public class KeyValuePair : Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IKeyValuePair
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.KeyValuePairTypeConverter))>]
type KeyValuePair = class
    interface IKeyValuePair
    interface IJsonSerializable
Public Class KeyValuePair
Implements IKeyValuePair
Inheritance
KeyValuePair
Attributes
Implements

Constructors

Name Description
KeyValuePair()

Creates an new KeyValuePair instance.

Properties

Name Description
Key

The name of the setting for the action.

Value

The value of the setting for the action.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of KeyValuePair.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of KeyValuePair.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Chaos.Models.IKeyValuePair.

FromJsonString(String)

Creates a new instance of KeyValuePair, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of KeyValuePair into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to