XhtmlMobileTextWriter.CacheKey Propriedade

Definição

Obtém a chave exclusiva usada para recuperar itens do Cache.Gets the unique key used to retrieve items from the Cache. Esta API está obsoleta.This API is obsolete. Para saber mais sobre como desenvolver aplicativos móveis ASP.NET, veja Mobile Apps & Sites with ASP.NET (Aplicativos móveis e sites com ASP.NET).For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 virtual property System::String ^ CacheKey { System::String ^ get(); };
public virtual string CacheKey { get; }
member this.CacheKey : string
Public Overridable ReadOnly Property CacheKey As String

Valor da propriedade

String

Um string que contém uma chave exclusiva.A string containing a unique key.

Exceções

O método SetCacheKey(Cache) não foi chamado.The SetCacheKey(Cache) method has not been called.

Comentários

Alguns dispositivos não permitem estilos embutidos em elementos, mas exigem que informações de estilo sejam fornecidas de uma folha de estilos vinculada.Some devices do not allow inline styles in elements, but require style information to be provided from a linked style sheet. Se a folha de estilos vinculada for armazenada no Cache , a URL conterá um exclusivo CacheKey que identifica a folha de estilos a ser retornada.If the linked style sheet is stored in the Cache, the URL contains a unique CacheKey that identifies the style sheet to return. Para esses dispositivos de destino, o XhtmlMobileTextWriter move as informações de estilo dos controles renderizados para uma folha de estilos para cache.For these target devices, the XhtmlMobileTextWriter moves style information from rendered controls to a style sheet for caching.

Um adaptador de página pode instruir o a XhtmlMobileTextWriter salvar a folha de estilos no Cache usando SetCacheKey ou na Session SetSessionKey página usando antes da renderização.A page adapter can instruct the XhtmlMobileTextWriter to save the style sheet in the Cache using SetCacheKey, or in the Session using SetSessionKey before rendering the page.

Essa propriedade é usada principalmente por desenvolvedores de adaptadores de controle e página móveis personalizados.This property is used primarily by developers of custom mobile page and control adapters.

Aplica-se a

Confira também