ComponentDesigner.ShadowPropertyCollection.Item[String] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置指定索引处的对象。
public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ propertyName); void set(System::String ^ propertyName, System::Object ^ value); };
public object this[string propertyName] { get; set; }
public object? this[string propertyName] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(propertyName As String) As Object
参数
- propertyName
- String
要访问集合中的属性的名称。
属性值
指定属性的值(如果集合中存在)。 否则,将从非阴影属性的当前值中检索该值。
注解
如果属性尚未隐藏,此方法将返回属性的当前值。 因此,请务必通过调用 Contains来确定属性是否为阴影。