Gets or sets the role at a specified index in a collection of linked elements.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Default Property Item ( _
index As Integer _
) As T
'使用
Dim instance As LinkedElementCollection
Dim index As Integer
Dim value As T
value = instance(index)
instance(index) = value
public T this[
int index
] { get; set; }
public:
virtual property T default[int index] {
T get (int index) sealed;
void set (int index, T value) sealed;
}
JScript does not support indexed properties.
Parameters
index
Type: System.Int32The index of the role.
Property Value
Type: T
The role at the specified index in a collection of linked elements.
Implements
Permissions
- 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
LinkedElementCollection<T> Class