SerializationContext.Item Property

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).

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)

Syntax

'Declaration
Public Default Property Item ( _
    propertyName As String _
) As Object
public Object this[
    string propertyName
] { get; set; }
public:
property Object^ default[String^ propertyName] {
    Object^ get (String^ propertyName);
    void set (String^ propertyName, Object^ value);
}
member Item : 
        propertyName:string -> Object with get, set
JScript does not support indexed properties.

Parameters

  • propertyName
    Type: String

Property Value

Type: Object

.NET Framework Security

See Also

Reference

SerializationContext Class

Microsoft.VisualStudio.Modeling Namespace