Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Default Property Item ( _
index As Integer _
) As CommandID
'使用
Dim instance As CommandIdCollection
Dim index As Integer
Dim value As CommandID
value = instance(index)
instance(index) = value
public CommandID this[
int index
] { get; set; }
public:
property CommandID^ default[int index] {
CommandID^ get (int index);
void set (int index, CommandID^ value);
}
JScript does not support indexed properties.
Parameters
- index
Type: System.Int32
Property Value
Type: System.ComponentModel.Design.CommandID
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.