VerifySetDefaults()

Cookie::VerifySetDefaults(CookieVariant, System::SharedPtr<Uri>, bool, String, bool, bool) 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)

Arguments

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.

Return Value

True when all values are valid, otherwise false.

See Also