ModelProperty.Collection Property
When overridden in a derived class, gets the Value property cast as a ModelItemCollection.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property Collection As ModelItemCollection
'Usage
Dim instance As ModelProperty
Dim value As ModelItemCollection
value = instance.Collection
public abstract ModelItemCollection Collection { get; }
public:
virtual property ModelItemCollection^ Collection {
ModelItemCollection^ get () abstract;
}
public abstract function get Collection () : ModelItemCollection
Property Value
Type: Microsoft.Windows.Design.Model.ModelItemCollection
A ModelItemCollection that represents Value.
Remarks
This property allows you to access collection properties without having to invoke casts. If the property value is not a collection, this property returns nulla null reference (Nothing in Visual Basic).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace