Get or set a cookie by its name.
[C#] In C#, this member is the indexer for the CookieCollection class.
[Visual Basic] Overloads Public Default Property Item( _ ByVal name As String _ ) As Cookie [C#] public Cookie this[ string name ] {get; set;} [C++] public: __property Cookie* get_Item( String* name ); public: __property void set_Item( String* name, Cookie* ); [JScript] returnValue = CookieCollectionObject.Item(name); CookieCollectionObject.Item(name) = returnValue; -or- returnValue = CookieCollectionObject(name); CookieCollectionObject(name) = returnValue;
[JScript] 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 Item property whose type is Object and whose index type is String.
CookieCollection Class | CookieCollection Members | System.Web.Services.Protocols Namespace | CookieCollection.Item Overload List