System::Net::Cookie::VerifySetDefaults method

Cookie::VerifySetDefaults method

Verifies and sets the default attribute’s values.

bool System::Net::Cookie::VerifySetDefaults(CookieVariant variant, System::SharedPtr<Uri> uri, bool isLocalDomain, String localDomain, bool setDefault, bool shouldThrow)
ParameterTypeDescription
variantCookieVariantThe cookie’s specification.
uriSystem::SharedPtr<Uri>The Uri-class instance that is used to initialize the internal fields.
isLocalDomainboolA value that indicates if the cookie is pushed into the the local domain.
localDomainStringA local domain name.
setDefaultboolA value that indicates if the cookie’s attributes must be initialized using their default values.
shouldThrowboolA value that indicates if an exception should be thrown when the specified values are invalid.

ReturnValue

True when all values are valid, otherwise false.

See Also