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