CookielessData 类

定义

警告

此 API 现已过时。

将数据封装到加密的 FormsAuthenticationTicket 中,以供页适配器包括到移动控件的链接中。Encapsulates data into an encrypted FormsAuthenticationTicket for a page adapter to include in links in mobile controls. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public ref class CookielessData : System::Collections::Specialized::HybridDictionary
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see https://go.microsoft.com/fwlink/?LinkId=157231.")]
public class CookielessData : System.Collections.Specialized.HybridDictionary
type CookielessData = class
    inherit HybridDictionary
Public Class CookielessData
Inherits HybridDictionary
继承
CookielessData
属性

注解

有关详细信息,请参阅 HybridDictionaryFor more information, see HybridDictionary.

构造函数

CookielessData()

创建 CookielessData 类的实例。Creates an instance of the CookielessData class. 此 API 已过时。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 ASP.NET 移动应用和网站For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

属性

Count

获取包含在 HybridDictionary 中的键/值对的数目。Gets the number of key/value pairs contained in the HybridDictionary.

(继承自 HybridDictionary)
IsFixedSize

获取一个值,该值指示 HybridDictionary 是否具有固定大小。Gets a value indicating whether the HybridDictionary has a fixed size.

(继承自 HybridDictionary)
IsReadOnly

获取一个值,用于指示 HybridDictionary 是否为只读。Gets a value indicating whether the HybridDictionary is read-only.

(继承自 HybridDictionary)
IsSynchronized

获取一个值,该值指示 HybridDictionary 是否是同步的(线程安全)。Gets a value indicating whether the HybridDictionary is synchronized (thread safe).

(继承自 HybridDictionary)
Item[Object]

获取或设置与指定的键关联的值。Gets or sets the value associated with the specified key.

(继承自 HybridDictionary)
Keys

获取包含 ICollection 中的键的 HybridDictionaryGets an ICollection containing the keys in the HybridDictionary.

(继承自 HybridDictionary)
SyncRoot

获取可用于同步对 HybridDictionary 的访问的对象。Gets an object that can be used to synchronize access to the HybridDictionary.

(继承自 HybridDictionary)
Values

获取一个 ICollection,它包含 HybridDictionary 中的值。Gets an ICollection containing the values in the HybridDictionary.

(继承自 HybridDictionary)

方法

Add(Object, Object)

将带有指定键和值的条目添加到 HybridDictionary 中。Adds an entry with the specified key and value into the HybridDictionary.

(继承自 HybridDictionary)
Clear()

HybridDictionary 中移除所有项。Removes all entries from the HybridDictionary.

(继承自 HybridDictionary)
Contains(Object)

确定 HybridDictionary 是否包含特定键。Determines whether the HybridDictionary contains a specific key.

(继承自 HybridDictionary)
CopyTo(Array, Int32)

HybridDictionary 项复制到位于指定索引处的一维 Array 实例中。Copies the HybridDictionary entries to a one-dimensional Array instance at the specified index.

(继承自 HybridDictionary)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

返回循环访问 IDictionaryEnumeratorHybridDictionaryReturns an IDictionaryEnumerator that iterates through the HybridDictionary.

(继承自 HybridDictionary)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(Object)

HybridDictionary 中移除带有指定键的项。Removes the entry with the specified key from the HybridDictionary.

(继承自 HybridDictionary)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IEnumerable.GetEnumerator()

返回循环访问 IEnumeratorHybridDictionaryReturns an IEnumerator that iterates through the HybridDictionary.

(继承自 HybridDictionary)

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

安全性

AspNetHostingPermission
用于在宿主环境中进行操作。for operating in a hosted environment. 要求值:InheritanceDemand;权限值:MinimalDemand value: InheritanceDemand; Permission value: Minimal.

适用于

另请参阅