System::Net::Cookie class
Contents
[
Hide
]Cookie class
Represents an HTTP cookie. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class Cookie : public System::Object
Methods
Method | Description |
---|---|
Clone() | Creates a copy of the current instance. |
Cookie() | Constructs a new instance. |
Cookie(String, String) | Constructs a new instance. |
Cookie(String, String, String) | Constructs a new instance. |
Cookie(String, String, String, String) | Constructs a new instance. |
Equals(System::SharedPtr<Object>) override | Compares objects using C# Object.Equals semantics. |
get_Comment() const | Gets the ‘Comment’ attribute’s value. |
get_CommentUri() const | Gets the ‘CommentURL’ attribute’s value. |
get_Discard() const | Gets the ‘Discard’ attribute’s value. |
get_Domain() const | Gets the ‘Domain’ attribute’s value. |
get_DomainImplicit() | Gets a value that indicates if the domain is implicit. |
get_DomainKey() const | Returns the domain key. |
get_Expired() | Gets a value that indicates if the cookie expired. |
get_Expires() | Gets the ‘Expires’ attribute’s value. |
get_HttpOnly() const | Gets the ‘HttpOnly’ attribute’s value. |
get_Name() const | Gets the cookie’s name. |
get_Path() const | Gets the ‘Path’ attribute’s value. |
get_Plain() const | Returns a value that indicates if the cookie specification is ‘Plain’. |
get_Port() const | Gets the ‘Port’ attribute’s value. |
get_PortList() const | Returns the collection of the ‘Port’ attribute’s values. |
get_Secure() const | Gets the ‘Secure’ attribute’s value. |
get_TimeStamp() const | Returns the time when the cookie was created. |
get_Value() const | Gets the cookie’s’value. |
get_Variant() const | Gets the cookie’s specification. |
get_Version() const | Gets the ‘Version’ attribute’s value. |
GetHashCode() const override | Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. |
InternalSetName(String) | This method is called by other methods to set a method name. |
set_Comment(String) | Sets the ‘Comment’ attribute’s value. |
set_CommentUri(System::SharedPtr<Uri>) | Sets the ‘CommentURL’ attribute’s value. |
set_Discard(bool) | Sets the ‘Discard’ attribute’s value. |
set_Domain(String) | Sets the ‘Domain’ attribute’s value. |
set_DomainImplicit(bool) | Sets a value that indicates if the domain is implicit. |
set_Expired(bool) | Sets a value that indicates if the cookie expired. |
set_Expires(DateTime) | Sets the ‘Expires’ attribute’s value. |
set_HttpOnly(bool) | Sets the ‘HttpOnly’ attribute’s value. |
set_Name(String) | Sets the cookie’s name. |
set_Path(String) | Sets the ‘Path’ attribute’s value. |
set_Port(String) | Sets the ‘Port’ attribute’s value. |
set_Secure(bool) | Sets the ‘Secure’ attribute’s value. |
set_Value(String) | Sets the cookie’s value. |
set_Variant(CookieVariant) | Sets the cookie’s specification. |
set_Version(int32_t) | Sets the ‘Version’ attribute’s value. |
ToServerString() | Serializes the current instance to the string representation. |
ToString() const override | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
VerifySetDefaults(CookieVariant, System::SharedPtr<Uri>, bool, String, bool, bool) | Verifies and sets the default attribute’s values. |
Fields
Field | Description |
---|---|
static CommentAttributeName | The ‘Comment’ attribute’s name. |
static CommentUrlAttributeName | The ‘CommentURL’ attribute’s name. |
static DiscardAttributeName | The ‘Discard’ attribute’s name. |
static DomainAttributeName | The ‘Domain’ attribute’s name. |
static EqualsLiteral | The separator that is used to separates the name and value of an attribute. |
static ExpiresAttributeName | The ‘Expires’ attribute’s name. |
static HttpOnlyAttributeName | The ‘HttpOnly’ attribute’s name. |
static MaxAgeAttributeName | The ‘Max-Age’ attribute’s name. |
static MaxSupportedVersion | RTTI information. |
static MaxSupportedVersionString | The string representation of the maximum supported version. |
static PathAttributeName | The ‘Path’ attribute’s name. |
static PortAttributeName | The ‘Port’ attribute’s name. |
static PortSplitDelimiters | The array that contains delimiters for the ‘Port’ attribute’s values. |
static QuotesLiteral | The symbol used to wrap the attribute’s parts. |
static ReservedToName | A value that is reserved for the cookie name. |
static ReservedToValue | A value that is reserved for the cookie value. |
static SecureAttributeName | The ‘Secure’ attribute’s name. |
static SeparatorLiteral | The attribute separator. |
static SpecialAttributeLiteral | The prefix of the special attributes’ names. |
static VersionAttributeName | The ‘Version’ attribute’s name. |
See Also
- Class Object
- Namespace System::Net
- Library Aspose.PDF for C++