RouteValueDictionary.Item[String] 属性
定义
获取或设置与指定的键关联的值。Gets or sets the value that is associated with the specified key.
public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ key); void set(System::String ^ key, System::Object ^ value); };
public object this[string key] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(key As String) As Object
参数
- key
- String
要获取或设置的值的键。The key of the value to get or set.
属性值
与指定的键关联的值,如果该键在集合中不存在,则为 null。The value that is associated with the specified key, or null if the key does not exist in the collection.