Interface IPropertyBag
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
Defines simple property bag which stores langword_csharp_string properties associated with langword_csharp_string keys.
Namespace: Stylelabs.M.Scripting.Types.V1_0.Action
Assembly: Stylelabs.M.Scripting.Types.dll
Syntax
Properties
Item[String]
Gets or sets the value associated with the given key.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
The key to get the value for. |
Property Value
| Type | Description |
|---|---|
| System.String |
The value associated with the given |
Methods
Add(String, String)
Add specified value or override existing one
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | |
| System.String | addValue |
Returns
| Type | Description |
|---|---|
| System.String |
added value |
ContainsKey(String)
Checks if the IPropertyBag contains an entry for the given key.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
The key to check. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
true if the bag contains an entry for the given |
Remove(String)
Tries to removes the entry with the specified key from the property-bag. If the entry doesn't exist, nothing will happen.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key |
The key to remove. |
Returns
| Type | Description |
|---|---|
| System.Boolean |
true if entry's been removed, meaning the property-bag contained an entry wit the given |
TryGetValue(String, out String)
Attempts to get the value associated with specified key
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | |
| System.String | value |
Returns
| Type | Description |
|---|---|
| System.Boolean |
true if the value was returned |