类库说明文档
![]() | JHCookieGetTtype Method (String) |
获取 Cookie 中指定键的值,已去除首尾空格并解码,如果异常或获取为 null,则返回当前类型的默认值 default(Ttype)
Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static Ttype Get<Ttype>( string name ) where Ttype : IConvertible
Parameters
- name
- Type: SystemString
要获取的键名称
Type Parameters
- Ttype
- 要返回的数据类型,如 int, string, DateTime 等
Return Value
Type: Ttype返回指定键的值
