1. IPropertyBag

Interface IPropertyBag

Version:
日本語翻訳に関する免責事項

このページの翻訳は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
public interface IPropertyBag

Properties

Item[String]

Gets or sets the value associated with the given key.

Declaration
string this[string key] { get; set; }
Parameters
TypeNameDescription
System.Stringkey

The key to get the value for.

Property Value
TypeDescription
System.String

The value associated with the given key. If the value's not there, null is returned.

Methods

Add(String, String)

Add specified value or override existing one

Declaration
string Add(string key, string addValue)
Parameters
TypeNameDescription
System.Stringkey
System.StringaddValue
Returns
TypeDescription
System.String

added value

ContainsKey(String)

Checks if the IPropertyBag contains an entry for the given key.

Declaration
bool ContainsKey(string key)
Parameters
TypeNameDescription
System.Stringkey

The key to check.

Returns
TypeDescription
System.Boolean

true if the bag contains an entry for the given key; otherwise false.

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
bool Remove(string key)
Parameters
TypeNameDescription
System.Stringkey

The key to remove.

Returns
TypeDescription
System.Boolean

true if entry's been removed, meaning the property-bag contained an entry wit the given key; otherwise false.

TryGetValue(String, out String)

Attempts to get the value associated with specified key

Declaration
bool TryGetValue(string key, out string value)
Parameters
TypeNameDescription
System.Stringkey
System.Stringvalue
Returns
TypeDescription
System.Boolean

true if the value was returned

この記事を改善するための提案がある場合は、 お知らせください!