Freigeben über


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaration
Public Default Property Item ( _
    propertyName As String _
) As Object
    Get
    Set
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 : Object with get, set
JScript does not support indexed properties.

Parameters

Property Value

Type: System.Object

.NET Framework Security

See Also

Reference

SerializationContext Class

Microsoft.VisualStudio.Modeling Namespace