次の方法で共有


SerializationContext.Item[String] Property

Definition

Indexer to access properties stored in this context. The property name is compared by case-sensitive ordinal string comparison. If a property already exists in the context, setting it will override the old value with the new value. If a property doesn't exist in the context, getting it will return null, therefore setting a property to null will remove it from the context (i.e. null and non-existing values are not distinguishable).

public:
 property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };
public object this[string propertyName] { [System.Diagnostics.DebuggerStepThrough] get; [System.Diagnostics.DebuggerStepThrough] set; }
[<get: System.Diagnostics.DebuggerStepThrough>]
[<set: System.Diagnostics.DebuggerStepThrough>]
member this.Item(string) : obj with get, set
Default Public Property Item(propertyName As String) As Object

Parameters

propertyName
String

Name of the property, must by non-empty string.

Property Value

Value of the proeprty, null if the property doesn't exist in current context.

Attributes

Applies to