1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
//------------------------------------------------------------------------------
// <copyright file="IPageAdapter.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System.Collections;
using System.Collections.Specialized;
using System.IO;
using System.Security.Permissions;
namespace System.Web.UI.MobileControls
{
/*
* PageAdapter Interface.
* A control adapter handles all of the (potentially) device specific
* functionality for a mobile page.
*
* Copyright (c) 2000 Microsoft Corporation
*/
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter"]/*' />
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[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 http://go.microsoft.com/fwlink/?LinkId=157231.")]
public interface IPageAdapter : IControlAdapter
{
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.Page"]/*' />
new MobilePage Page
{
get;
set;
}
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.OptimumPageWeight"]/*' />
int OptimumPageWeight
{
get;
}
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.CookielessDataDictionary"]/*' />
IDictionary CookielessDataDictionary
{
get;
set;
}
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.PersistCookielessData"]/*' />
bool PersistCookielessData
{
get;
set;
}
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.CreateTextWriter"]/*' />
// return null to indicate use base implementation
HtmlTextWriter CreateTextWriter(TextWriter writer);
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.DeterminePostBackMode"]/*' />
// Each device specific PageAdapter can manipulate the incoming post
// back value collection and return a new collection.
NameValueCollection DeterminePostBackMode
(
HttpRequest request,
String postEventSourceID,
String postEventArgumentID,
NameValueCollection baseCollection
);
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.CacheVaryByHeaders"]/*' />
// Return a list of additional HTTP headers that want to be keyed for
// the ASP.NET page output caching mechanism.
IList CacheVaryByHeaders
{
get;
}
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.HandleError"]/*' />
bool HandleError(Exception e, HtmlTextWriter writer);
/// <include file='doc\IPageAdapter.uex' path='docs/doc[@for="IPageAdapter.HandlePagePostBackEvent"]/*' />
bool HandlePagePostBackEvent(String eventSource, String eventArgument);
}
}
|