편집

다음을 통해 공유


HttpCapabilitiesBase.Item[String] Property

Definition

Gets the value of the specified browser capability. In C#, this property is the indexer for the class.

public:
 virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ key); };
public virtual string this[string key] { get; }
member this.Item(string) : string
Default Public Overridable ReadOnly Property Item(key As String) As String

Parameters

key
String

The name of the browser capability to retrieve.

Property Value

The browser capability with the specified key name.

Remarks

In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property with a type of Object and an index type of String.

Applies to