HttpCapabilitiesBaseとは? わかりやすく解説

HttpCapabilitiesBase クラス

クライアントのブラウザ機能に関する詳細な情報にアクセスできるようにします。

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Class HttpCapabilitiesBase
    Implements IFilterResolutionService
Dim instance As HttpCapabilitiesBase
public class HttpCapabilitiesBase : IFilterResolutionService
public ref class HttpCapabilitiesBase : IFilterResolutionService
public class HttpCapabilitiesBase implements
 IFilterResolutionService
public class HttpCapabilitiesBase implements
 IFilterResolutionService
解説解説

HttpCapabilitiesBase は、HttpBrowserCapabilities クラスの派生元である基本クラスです。HttpCapabilitiesBase は、ブラウザの機能ディクショナリへのタイプ セーフなアクセスを可能にする読み取り専用のプロパティを数多く提供します。HttpCapabilitiesBase の派生クラスである HttpBrowserCapabilities には、ASP.NET HttpRequest.Browser プロパティによって公開されている Browser を使用してアクセスできます。

使用例使用例

ブラウザ情報へのアクセス方法を次のコード例に示します。

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
Dim bCaps As System.Web.HttpBrowserCapabilities

    Sub Page_Load(ByVal Sender As
 Object, ByVal e As EventArgs)
        bCaps = Request.Browser
        OutputLabel.Text = TestCaps()
    End Sub

    Function TestCaps() As String
        Dim sb As StringBuilder
        sb = New StringBuilder()
        sb.AppendLine(TestActiveXControls())
        sb.AppendLine(TestAdapters())
        sb.AppendLine(TestAOL())
        sb.AppendLine(TestBackgroundSounds())
        sb.AppendLine(TestBeta())
        sb.AppendLine(TestBrowser())
        sb.AppendLine(TestBrowserID())
        sb.AppendLine(TestBrowsers())
        sb.AppendLine(TestCanCall())
        sb.AppendLine(TestCanRenderAfter())
        sb.AppendLine(TestCanRenderEmpty())
        sb.AppendLine(TestCanRenderInputSelectTogether())
        sb.AppendLine(TestCanRenderMixedSelects())
        sb.AppendLine(TestCanRenderOneventPrevTogether())
        sb.AppendLine(TestCanRenderPostBackCards())
        sb.AppendLine(TestCanRenderSetvar())
        sb.AppendLine(TestCanSendMail())
        sb.AppendLine(TestCDF())
        sb.AppendLine(TestCLRVersion())
        sb.AppendLine(TestCombineDeck())
        sb.AppendLine(TestDefaultSubmitButton())
        sb.AppendLine(TestECMAScriptVersion())
        sb.AppendLine(TestGatewayMajorVersion())
        sb.AppendLine(TestGatewayMinorVersion())
        sb.AppendLine(TestGatewayVersion())
        sb.AppendLine(TestHasBackButton())
        sb.AppendLine(TestHideRtAlignScrollBars())
        sb.AppendLine(TestInputType())
        sb.AppendLine(TestIsBrowser())
        sb.AppendLine(TestIsColor())
        sb.AppendLine(TestIsCrawler())
        sb.AppendLine(TestIsMobileDevice())
        sb.AppendLine(TestJavaScript())
        sb.AppendLine(TestJScriptVersion())
        sb.AppendLine(TestMajorVersion())
        sb.AppendLine(TestMaximumHrefLength())
        sb.AppendLine(TestMaximumRenderedPageSize())
        sb.AppendLine(TestMaximumSoftkeyLabelLength())
        sb.AppendLine(TestMinorVersion())
        sb.AppendLine(TestMinorVersionString())
        sb.AppendLine(TestMobileDeviceManufacturer())
        sb.AppendLine(TestMobileDeviceModel())
        sb.AppendLine(TestMSDomVersion())
        sb.AppendLine(TestNumberOfSoftKeys())
        sb.AppendLine(TestPlatform())
        sb.AppendLine(TestPreferredImageMime())
        sb.AppendLine(TestPreferredRenderingMime())
        sb.AppendLine(TestPreferredRenderingType())
        sb.AppendLine(TestPreferredRequestEncoding())
        sb.AppendLine(TestPreferredResponseEncoding())
        sb.AppendLine(TestRenderBreakBeforeWmlSelectAndInput())
        sb.AppendLine(TestRendersBreaksAfterHtmlLists())
        sb.AppendLine(TestRendersBreaksAfterWmlAnchor())
        sb.AppendLine(TestRendersBreaksAfterWmlInput())
        sb.AppendLine(TestRendersWmlDoAcceptsInline())
        sb.AppendLine(TestRendersWmlSelectsAsMenuCards())
        sb.AppendLine(TestRequiredMetaTagNameValue())
        sb.AppendLine(TestRequiresAttributeColonSubstitution())
        sb.AppendLine(TestRequiresContentTypeMetaTag())
        sb.AppendLine(TestRequiresControlStateInSession())
        sb.AppendLine(TestRequiresDBCSCharacter())
        sb.AppendLine(TestRequiresHtmlAdaptiveErrorReporting())
        sb.AppendLine(TestRequiresLeadingPageBreak())
        sb.AppendLine(TestRequiresNoBreakInFormatting())
        sb.AppendLine(TestRequiresOutputOptimization())
        sb.AppendLine(TestRequiresPhoneNumberAsPlainText())
        sb.AppendLine(TestRequiresSpecialViewStateEncoding())
        sb.AppendLine(TestRequiresUniqueFilePathSuffix())
        sb.AppendLine(TestRequiresUniqueHtmlCheckboxNames())
        sb.AppendLine(TestRequiresUniqueHtmlInputNames())
        sb.AppendLine(TestRequiresUrlEncodedPostfieldValues())
        sb.AppendLine(TestScreenBitDepth())
        sb.AppendLine(TestScreenCharactersHeight())
        sb.AppendLine(TestScreenCharactersWidth())
        sb.AppendLine(TestScreenPixelsHeight())
        sb.AppendLine(TestScreenPixelsWidth())
        sb.AppendLine(TestScreenAccesskeyAttribute())
        sb.AppendLine(TestSupportsBodyColor())
        sb.AppendLine(TestSupportsBold())
        sb.AppendLine(TestSupportsCacheControlMetaTag())
        sb.AppendLine(TestSupportsCallback())
        sb.AppendLine(TestSupportsCookies())
        sb.AppendLine(TestSupportsCss())
        sb.AppendLine(TestSupportsDivAlign())
        sb.AppendLine(TestSupportsDivNoWrap())
        sb.AppendLine(TestSupportsEmptyStringInCookieValue())
        sb.AppendLine(TestSupportsFontColor())
        sb.AppendLine(TestSupportsFontName())
        sb.AppendLine(TestSupportsFontSize())
        sb.AppendLine(TestSupportsFrames())
        sb.AppendLine(TestSupportsImageSubmit())
        sb.AppendLine(TestSupportsIModeSymbols())
        sb.AppendLine(TestSupportsInputIStyle())
        sb.AppendLine(TestSupportsInputMode())
        sb.AppendLine(TestSupportsItalic())
        sb.AppendLine(TestSupportsJava())
        sb.AppendLine(TestSupportsJPhoneMultiMediaAttributes())
        sb.AppendLine(TestSupportsJPhoneSymbols())
        sb.AppendLine(TestSupportsQueryStringInFormAction())
        sb.AppendLine(TestSupportsRedirectWithCookie())
        sb.AppendLine(TestSupportsSelectMultiple())
        sb.AppendLine(TestSupportsUncheck())
        sb.AppendLine(TestSupportsXmlHttp())
        sb.AppendLine(TestTables())
        sb.AppendLine(TestType())
        sb.AppendLine(TestVBScript())
        sb.AppendLine(TestVersion())
        sb.AppendLine(TestW3CDomVersion())
        sb.AppendLine(TestWin16())
        sb.AppendLine(TestWin32())

        Return sb.ToString().Replace(Environment.NewLine, "<br
 />")
    End Function

    Function TestActiveXControls() As String
        Return String.Format("Supports
 ActiveX controls: {0}", _
            bCaps.ActiveXControls)
    End Function

    Function TestAdapters() As String
        Return String.Format("Adapter
 count: {0}", _
            bCaps.Adapters.Count)
    End Function
    
    Function TestAOL() As String
        Return String.Format("Is
 an AOL browser: {0}", _
            bCaps.AOL.ToString())
    End Function

    Function TestBackgroundSounds() As String
        Return String.Format("Supports
 background sounds: {0}", _
            bCaps.BackgroundSounds)
    End Function
    
    Function TestBeta() As String
        Return String.Format("Is
 a beta version: {0}", _
            bCaps.Beta)
    End Function
    
    Function TestBrowser() As String
        Return String.Format("Browser
 type: {0}", _
            bCaps.Browser)
    End Function

    Function TestBrowsers() As String
        Return String.Format("#
 of browsers in dictionary: {0}", _
            bCaps.Browsers.Count)
    End Function

    Function TestCombineDeck() As String
        Return String.Format("Can
 combine forms in deck: {0}", _
            bCaps.CanCombineFormsInDeck)
    End Function

    Function TestCanCall() As String
        Return String.Format("Can
 initiate voice call: {0}", _
            bCaps.CanInitiateVoiceCall)
    End Function

    Function TestCanRenderAfter() As String
        Return String.Format("Can
 render {0}: {1}", _
            "after input or select element", _
            bCaps.CanRenderAfterInputOrSelectElement)
    End Function

    Function TestCanRenderEmpty() As String
        Return String.Format("Can
 render empty selects: {0}", _
            bCaps.CanRenderEmptySelects)
    End Function

    Function TestCanRenderInputSelectTogether() As
 String
        Return String.Format("Can
 render {0} together: {1}", _
            "input and select elements", _
            bCaps.CanRenderInputAndSelectElementsTogether)
    End Function

    Function TestCanRenderMixedSelects() As
 String
        Return String.Format("Can
 render mixed selects: {0}", _
            bCaps.CanRenderMixedSelects)
    End Function

    Function TestCanRenderOneventPrevTogether() As
 String
        Return String.Format("Can
 render {0} together: {1}", _
            "OnEvent and Prev elements", _
            bCaps.CanRenderOneventAndPrevElementsTogether)
    End Function

    Function TestCanRenderPostBackCards() As
 String
        Return String.Format("Can
 render postback cards: {0}", _
            bCaps.CanRenderPostBackCards)
    End Function

    Function TestCanRenderSetvar() As String
        Return String.Format("Can
 render {0}: {1}", _
            "setvar elements with a value of 0", _
            bCaps.CanRenderSetvarZeroWithMultiSelectionList)
    End Function

    Function TestCanSendMail() As String
        Return String.Format("Can
 send mail: {0}", _
            bCaps.CanSendMail)
    End Function

    Function TestCDF() As String
        Return String.Format("Supports
 {0}: {1}", _
            "Channel Definition Format", _
            bCaps.CDF.ToString())
    End Function

    Function TestCLRVersion() As String
        Return String.Format("CLR
 version on client: {0}", _
            bCaps.ClrVersion)
    End Function

    Function TestSupportsCookies() As String
        Return String.Format("Supports
 cookies: {0}", _
            bCaps.Cookies)
    End Function

    Function TestIsCrawler() As String
        Return String.Format("Is
 a crawler: {0}", _
            bCaps.Crawler)
    End Function
    
    Function TestDefaultSubmitButton() As String
        Return String.Format("Submit
 button limit: {0}", _
            bCaps.DefaultSubmitButtonLimit)
    End Function

    Function TestECMAScriptVersion() As String
        Return String.Format("ECMA
 script version: {0}", _
            bCaps.EcmaScriptVersion)
    End Function

    Function TestSupportsFrames() As String
        Return String.Format("Supports
 frames: {0}", _
            bCaps.Frames)
    End Function

    Function TestGatewayMajorVersion() As String
        Return String.Format("Gateway
 major version: {0}", _
            bCaps.GatewayMajorVersion.ToString())
    End Function

    Function TestGatewayMinorVersion() As String
        Return String.Format("Gateway
 minor version: {0}", _
            bCaps.GatewayMinorVersion.ToString())
    End Function

    Function TestGatewayVersion() As String
        Return String.Format("Gateway
 version: {0}", _
            bCaps.GatewayVersion.ToString())
    End Function

    Function TestHasBackButton() As String
        Return String.Format("Has
 back button: {0}", _
            bCaps.HasBackButton.ToString())
    End Function

    Function TestHideRtAlignScrollBars() As
 String
        Return String.Format("Hide
 hide right-aligned {0}: {1}", _
            "multi-select scrollbars", _
            bCaps.HidesRightAlignedMultiselectScrollbars.ToString())
    End Function

    Function TestBrowserID() As String
        Return String.Format("Browser
 ID: {0}", _
            bCaps.Id)
    End Function

    Function TestInputType() As String
        Return String.Format("Supported
 input type: {0}", _
            bCaps.InputType)
    End Function

    Function TestIsBrowser() As String
        Return String.Format("Is
 client a given browser: {0}", _
            bCaps.IsBrowser("IE").ToString())
    End Function

    Function TestIsColor() As String
        Return String.Format("Is
 color display: {0}", _
            bCaps.IsColor.ToString())
    End Function

    Function TestIsMobileDevice() As String
        Return String.Format("Is
 mobile device: {0}", _
            bCaps.IsMobileDevice.ToString())
    End Function

    Function TestSupportsJava() As String
        Return String.Format("Supports
 Java: {0}", _
            bCaps.JavaApplets.ToString())
    End Function

    Function TestJavaScript() As String
        Return String.Format("Supports
 JavaScript: {0}", _
            bCaps.JavaScript.ToString())
    End Function

    Function TestJScriptVersion() As String
        Return String.Format("JScript
 version: {0}", _
            bCaps.JScriptVersion.ToString())
    End Function

    Function TestMajorVersion() As String
        Return String.Format("Major
 version of browser: {0}", _
            bCaps.MajorVersion.ToString())
    End Function

    Function TestMaximumHrefLength() As String
        Return String.Format("Max.
 href length: {0}", _
            bCaps.MaximumHrefLength.ToString())
    End Function

    Function TestMaximumRenderedPageSize() As
 String
        Return String.Format("Max.
 {0}: {1}", _
            "rendered page size in bytes", _
            bCaps.MaximumRenderedPageSize.ToString())
    End Function
    
    Function TestMaximumSoftkeyLabelLength() As
 String
        Return String.Format("Max.
 softkey label length: {0}", _
            bCaps.MaximumSoftkeyLabelLength.ToString())
    End Function
    
    Function TestMinorVersion() As String
        Return String.Format("Minor
 browser version: {0}", _
            bCaps.MinorVersion.ToString())
    End Function
    
    Function TestMinorVersionString() As String
        Return String.Format("Minor
 browser version {0}: {1}", _
            "(as string)", _
            bCaps.MinorVersionString)
    End Function
    
    Function TestMobileDeviceManufacturer() As
 String
        Return String.Format("Mobile
 device manufacturer: {0}", _
            bCaps.MobileDeviceManufacturer)
    End Function

    Function TestMobileDeviceModel() As String
        Return String.Format("Mobile
 device model: {0}", _
            bCaps.MobileDeviceModel)
    End Function

    Function TestMSDomVersion() As String
        Return String.Format("MS
 DOM version: {0}", _
            bCaps.MSDomVersion.ToString())
    End Function

    Function TestNumberOfSoftKeys() As String
        Return String.Format("Number
 of soft keys: {0}", _
            bCaps.NumberOfSoftkeys.ToString())
    End Function

    Function TestPlatform() As String
        Return String.Format("Platform
 of client: {0}", _
            bCaps.Platform)
    End Function

    Function TestPreferredImageMime() As String
        Return String.Format("Preferred
 image MIME: {0}", _
            bCaps.PreferredImageMime)
    End Function

    Function TestPreferredRenderingMime() As
 String
        Return String.Format("Preferred
 rendering MIME: {0}", _
            bCaps.PreferredRenderingMime)
    End Function

    Function TestPreferredRenderingType() As
 String
        Return String.Format("Preferred
 rendering type: {0}", _
            bCaps.PreferredRenderingType)
    End Function

    Function TestPreferredRequestEncoding() As
 String
        Return String.Format("Preferred
 request encoding: {0}", _
            bCaps.PreferredRequestEncoding)
    End Function

    Function TestPreferredResponseEncoding() As
 String
        Return String.Format("Preferred
 response encoding: {0}", _
            bCaps.PreferredResponseEncoding)
    End Function

    Function TestRenderBreakBeforeWmlSelectAndInput() As
 String
        Return String.Format("Renders
 break {0}: {1}", _
            "before WML select/input", _
            bCaps.RendersBreakBeforeWmlSelectAndInput.ToString())
    End Function

    Function TestRendersBreaksAfterHtmlLists() As
 String
        Return String.Format("Renders
 breaks {0}: {1}", _
            "after HTML lists", _
            bCaps.RendersBreaksAfterHtmlLists)
    End Function

    Function TestRendersBreaksAfterWmlAnchor() As
 String
        Return String.Format("Renders
 breaks {0}: {1}", _
            "after Wml anchor", _
            bCaps.RendersBreaksAfterWmlAnchor)
    End Function

    Function TestRendersBreaksAfterWmlInput() As
 String
        Return String.Format("Renders
 breaks after Wml input: {0}", _
            bCaps.RendersBreaksAfterWmlInput)
    End Function

    Function TestRendersWmlDoAcceptsInline() As
 String
        Return String.Format("Renders
 Wml do accepts inline: {0}", _
            bCaps.RendersWmlDoAcceptsInline)
    End Function

    Function TestRendersWmlSelectsAsMenuCards() As
 String
        Return String.Format("Renders
 Wml {0}: {1}", _
            "selects as menu cards", _
            bCaps.RendersWmlSelectsAsMenuCards)
    End Function

    Function TestRequiredMetaTagNameValue() As
 String
        Return String.Format("Required
 meta tag name value: {0}", _
            bCaps.RequiredMetaTagNameValue)
    End Function

    Function TestRequiresAttributeColonSubstitution() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "attribute colon substitution", _
            bCaps.RequiresAttributeColonSubstitution)
    End Function

    Function TestRequiresContentTypeMetaTag() As
 String
        Return String.Format("Requires
 content type meta tag: {0}", _
            bCaps.RequiresContentTypeMetaTag)
    End Function

    Function TestRequiresControlStateInSession() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "control state in session", _
            bCaps.RequiresControlStateInSession)
    End Function

    Function TestRequiresDBCSCharacter() As
 String
        Return String.Format("Requires
 DBCS character: {0}", _
            bCaps.RequiresDBCSCharacter)
    End Function
    
    Function TestRequiresHtmlAdaptiveErrorReporting() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "control state in session", _
            bCaps.RequiresHtmlAdaptiveErrorReporting)
    End Function

    Function TestRequiresLeadingPageBreak() As
 String
        Return String.Format("Requires
 leading page break: {0}", _
            bCaps.RequiresLeadingPageBreak)
    End Function

    Function TestRequiresNoBreakInFormatting() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "no break in formatting", _
            bCaps.RequiresNoBreakInFormatting)
    End Function

    Function TestRequiresOutputOptimization() As
 String
        Return String.Format("Requires
 output optimization: {0}", _
            bCaps.RequiresOutputOptimization)
    End Function

    Function TestRequiresPhoneNumberAsPlainText() As
 String
        Return String.Format("Requires
 phone number as text: {0}", _
            bCaps.RequiresPhoneNumbersAsPlainText)
    End Function

    Function TestRequiresSpecialViewStateEncoding() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "special viewstate encoding", _
            bCaps.RequiresSpecialViewStateEncoding)
    End Function

    Function TestRequiresUniqueFilePathSuffix() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "unique file path suffix", _
            bCaps.RequiresUniqueFilePathSuffix)
    End Function

    Function TestRequiresUniqueHtmlCheckboxNames() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "unique HTML checkbox names", _
            bCaps.RequiresUniqueHtmlCheckboxNames)
    End Function

    Function TestRequiresUniqueHtmlInputNames() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "unique HTML input names", _
            bCaps.RequiresUniqueHtmlInputNames)
    End Function

    Function TestRequiresUrlEncodedPostfieldValues() As
 String
        Return String.Format("Requires
 {0}: {1}", _
            "URL encoded postfield values", _
            bCaps.RequiresUrlEncodedPostfieldValues)
    End Function

    Function TestScreenBitDepth() As String
        Return String.Format("Screen
 bit depth: {0}", _
            bCaps.ScreenBitDepth)
    End Function

    Function TestScreenCharactersHeight() As
 String
        Return String.Format("Screen
 height {0}: {1}", _
            "in character lines", _
            bCaps.ScreenCharactersHeight)
    End Function

    Function TestScreenCharactersWidth() As
 String
        Return String.Format("Screen
 width in characters: {0}", _
            bCaps.ScreenCharactersWidth)
    End Function

    Function TestScreenPixelsHeight() As String
        Return String.Format("Screen
 height in pixels: {0}", _
            bCaps.ScreenPixelsHeight)
    End Function

    Function TestScreenPixelsWidth() As String
        Return String.Format("Screen
 width in pixels: {0}", _
            bCaps.ScreenPixelsWidth)
    End Function

    Function TestScreenAccesskeyAttribute() As
 String
        Return String.Format("Supports
 ACCESSKEY: {0}", _
            bCaps.SupportsAccesskeyAttribute)
    End Function

    Function TestSupportsBodyColor() As String
        Return String.Format("Supports
 body color: {0}", _
            bCaps.SupportsBodyColor)
    End Function

    Function TestSupportsBold() As String
        Return String.Format("Supports
 bold: {0}", _
            bCaps.SupportsBold)
    End Function

    Function TestSupportsCacheControlMetaTag() As
 String
        Return String.Format("Supports
 {0}: {1}", _
            "cache-control meta tag", _
            bCaps.SupportsCacheControlMetaTag)
    End Function

    Function TestSupportsCallback() As String
        Return String.Format("Supports
 callback: {0}", _
            bCaps.SupportsCallback)
    End Function

    Function TestSupportsCss() As String
        Return String.Format("Supports
 CSS: {0}", _
            bCaps.SupportsCss)
    End Function

    Function TestSupportsDivAlign() As String
        Return String.Format("Supports
 DIV align: {0}", _
            bCaps.SupportsDivAlign)
    End Function

    Function TestSupportsDivNoWrap() As String
        Return String.Format("Supports
 DIV nowrap: {0}", _
            bCaps.SupportsDivNoWrap)
    End Function

    Function TestSupportsEmptyStringInCookieValue() As
 String
        Return String.Format("Supports
 {0}: {1}", _
            "cache-control meta tag", _
            bCaps.SupportsEmptyStringInCookieValue)
    End Function

    Function TestSupportsFontColor() As String
        Return String.Format("Supports
 font color: {0}", _
            bCaps.SupportsFontColor)
    End Function

    Function TestSupportsFontName() As String
        Return String.Format("Supports
 font name: {0}", _
            bCaps.SupportsFontName)
    End Function

    Function TestSupportsFontSize() As String
        Return String.Format("Supports
 font size: {0}", _
            bCaps.SupportsFontSize)
    End Function

    Function TestSupportsImageSubmit() As String
        Return String.Format("Supports
 image submit: {0}", _
            bCaps.SupportsImageSubmit)
    End Function

    Function TestSupportsIModeSymbols() As
 String
        Return String.Format("Supports
 i-mode symbols: {0}", _
            bCaps.SupportsIModeSymbols)
    End Function

    Function TestSupportsInputIStyle() As String
        Return String.Format("Supports
 {0}: {1}", _
            "input istyle attribute", _
            bCaps.SupportsInputIStyle)
    End Function

    Function TestSupportsInputMode() As String
        Return String.Format("Supports
 input mode: {0}", _
            bCaps.SupportsInputMode)
    End Function

    Function TestSupportsItalic() As String
        Return String.Format("Supports
 italics: {0}", _
            bCaps.SupportsItalic)
    End Function

    Function TestSupportsJPhoneMultiMediaAttributes() As
 String
        Return String.Format("Supports
 {0}: {1}", _
            "JPhone multimedia attributes", _
            bCaps.SupportsJPhoneMultiMediaAttributes)
    End Function

    Function TestSupportsJPhoneSymbols() As
 String
        Return String.Format("Supports
 JPhone picture symbols: {0}", _
            bCaps.SupportsJPhoneSymbols)
    End Function

    Function TestSupportsQueryStringInFormAction() As
 String
        Return String.Format("Supports
 {0}: {1}", _
            "querystring in form action", _
            bCaps.SupportsQueryStringInFormAction)
    End Function

    Function TestSupportsRedirectWithCookie() As
 String
        Return String.Format("Supports
 redirect with cookie: {0}", _
            bCaps.SupportsRedirectWithCookie)
    End Function

    Function TestSupportsSelectMultiple() As
 String
        Return String.Format("Supports
 select multiple: {0}", _
            bCaps.SupportsSelectMultiple)
    End Function

    Function TestSupportsUncheck() As String
        Return String.Format("Supports
 uncheck: {0}", _
            bCaps.SupportsUncheck)
    End Function

    Function TestSupportsXmlHttp() As String
        Return String.Format("Supports
 {0}: {1}", _
            "receiving XML over HTTP", _
            bCaps.SupportsXmlHttp)
    End Function

    Function TestTables() As String
        Return String.Format("Supports
 tables: {0}", _
            bCaps.Tables)
    End Function

    Function TestType() As String

        Return String.Format("Gets
 the browser name/version: {0}", _
            bCaps.Type)
    End Function

    Function TestVBScript() As String
        Return String.Format("Supports
 VBScript: {0}", _
            bCaps.VBScript)
    End Function

    Function TestVersion() As String
        Dim dVer As String
        dVer = bCaps.MajorVersion & "." &
 bCaps.MinorVersion
        If (Double.Parse(dVer) > 5.01) Then
            Return String.Format("New
 version: {0}", _
                bCaps.Version)
        Else
            Return String.Format("Old
 version: {0}", _
                bCaps.Version)
        End If
    End Function

    Function TestW3CDomVersion() As String
        Return String.Format("W3C
 DOM version: {0}", _
            bCaps.W3CDomVersion)
    End Function

    Function TestWin16() As String
        Return String.Format("Is
 Win16-based computer: {0}", _
            bCaps.Win16)
    End Function

    Function TestWin32() As String
        Return String.Format("Is
 Win32-based computer: {0}", _
            bCaps.Win32)
    End Function
</script>
<html  >
<head runat="server">
    <title>Browser Capabilities Sample</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        The current browser has the following capabilities:
        <br />
        <asp:Label ID="OutputLabel" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
System.Web.HttpBrowserCapabilities bCaps;

    void Page_Load(Object Sender, EventArgs e)
    {
        bCaps = Request.Browser;
        OutputLabel.Text = TestCaps();
    }   

    String TestCaps()
    {
        StringBuilder sb = new StringBuilder();
        sb.AppendLine(TestActiveXControls());
        sb.AppendLine(TestAdapters());
        sb.AppendLine(TestAOL());
        sb.AppendLine(TestBackgroundSounds());
        sb.AppendLine(TestBeta());
        sb.AppendLine(TestBrowser());
        sb.AppendLine(TestBrowserID());
        sb.AppendLine(TestBrowsers());
        sb.AppendLine(TestCanCall());
        sb.AppendLine(TestCanRenderAfter());
        sb.AppendLine(TestCanRenderEmpty());
        sb.AppendLine(TestCanRenderInputSelectTogether());
        sb.AppendLine(TestCanRenderMixedSelects());
        sb.AppendLine(TestCanRenderOneventPrevTogether());
        sb.AppendLine(TestCanRenderPostBackCards());
        sb.AppendLine(TestCanRenderSetvar());
        sb.AppendLine(TestCanSendMail());
        sb.AppendLine(TestCDF());
        sb.AppendLine(TestCLRVersion());
        sb.AppendLine(TestCombineDeck());
        sb.AppendLine(TestDefaultSubmitButton());
        sb.AppendLine(TestECMAScriptVersion());
        sb.AppendLine(TestGatewayMajorVersion());
        sb.AppendLine(TestGatewayMinorVersion());
        sb.AppendLine(TestGatewayVersion());
        sb.AppendLine(TestHasBackButton());
        sb.AppendLine(TestHideRtAlignScrollBars());
        sb.AppendLine(TestInputType());
        sb.AppendLine(TestIsBrowser());
        sb.AppendLine(TestIsColor());
        sb.AppendLine(TestIsCrawler());
        sb.AppendLine(TestIsMobileDevice());
        sb.AppendLine(TestJavaScript());
        sb.AppendLine(TestJScriptVersion());
        sb.AppendLine(TestMajorVersion());
        sb.AppendLine(TestMaximumHrefLength());
        sb.AppendLine(TestMaximumRenderedPageSize());
        sb.AppendLine(TestMaximumSoftkeyLabelLength());
        sb.AppendLine(TestMinorVersion());
        sb.AppendLine(TestMinorVersionString());
        sb.AppendLine(TestMobileDeviceManufacturer());
        sb.AppendLine(TestMobileDeviceModel());
        sb.AppendLine(TestMSDomVersion());
        sb.AppendLine(TestNumberOfSoftKeys());
        sb.AppendLine(TestPlatform());
        sb.AppendLine(TestPreferredImageMime());
        sb.AppendLine(TestPreferredRenderingMime());
        sb.AppendLine(TestPreferredRenderingType());
        sb.AppendLine(TestPreferredRequestEncoding());
        sb.AppendLine(TestPreferredResponseEncoding());
        sb.AppendLine(TestRenderBreakBeforeWmlSelectAndInput());
        sb.AppendLine(TestRendersBreaksAfterHtmlLists());
        sb.AppendLine(TestRendersBreaksAfterWmlAnchor());
        sb.AppendLine(TestRendersBreaksAfterWmlInput());
        sb.AppendLine(TestRendersWmlDoAcceptsInline());
        sb.AppendLine(TestRendersWmlSelectsAsMenuCards());
        sb.AppendLine(TestRequiredMetaTagNameValue());
        sb.AppendLine(TestRequiresAttributeColonSubstitution());
        sb.AppendLine(TestRequiresContentTypeMetaTag());
        sb.AppendLine(TestRequiresControlStateInSession());
        sb.AppendLine(TestRequiresDBCSCharacter());
        sb.AppendLine(TestRequiresHtmlAdaptiveErrorReporting());
        sb.AppendLine(TestRequiresLeadingPageBreak());
        sb.AppendLine(TestRequiresNoBreakInFormatting());
        sb.AppendLine(TestRequiresOutputOptimization());
        sb.AppendLine(TestRequiresPhoneNumberAsPlainText());
        sb.AppendLine(TestRequiresSpecialViewStateEncoding());
        sb.AppendLine(TestRequiresUniqueFilePathSuffix());
        sb.AppendLine(TestRequiresUniqueHtmlCheckboxNames());
        sb.AppendLine(TestRequiresUniqueHtmlInputNames());
        sb.AppendLine(TestRequiresUrlEncodedPostfieldValues());
        sb.AppendLine(TestScreenBitDepth());
        sb.AppendLine(TestScreenCharactersHeight());
        sb.AppendLine(TestScreenCharactersWidth());
        sb.AppendLine(TestScreenPixelsHeight());
        sb.AppendLine(TestScreenPixelsWidth());
        sb.AppendLine(TestScreenAccesskeyAttribute());
        sb.AppendLine(TestSupportsBodyColor());
        sb.AppendLine(TestSupportsBold());
        sb.AppendLine(TestSupportsCacheControlMetaTag());
        sb.AppendLine(TestSupportsCallback());
        sb.AppendLine(TestSupportsCookies());
        sb.AppendLine(TestSupportsCss());
        sb.AppendLine(TestSupportsDivAlign());
        sb.AppendLine(TestSupportsDivNoWrap());
        sb.AppendLine(TestSupportsEmptyStringInCookieValue());
        sb.AppendLine(TestSupportsFontColor());
        sb.AppendLine(TestSupportsFontName());
        sb.AppendLine(TestSupportsFontSize());
        sb.AppendLine(TestSupportsFrames());
        sb.AppendLine(TestSupportsImageSubmit());
        sb.AppendLine(TestSupportsIModeSymbols());
        sb.AppendLine(TestSupportsInputIStyle());
        sb.AppendLine(TestSupportsInputMode());
        sb.AppendLine(TestSupportsItalic());
        sb.AppendLine(TestSupportsJava());
        sb.AppendLine(TestSupportsJPhoneMultiMediaAttributes());
        sb.AppendLine(TestSupportsJPhoneSymbols());
        sb.AppendLine(TestSupportsQueryStringInFormAction());
        sb.AppendLine(TestSupportsRedirectWithCookie());
        sb.AppendLine(TestSupportsSelectMultiple());
        sb.AppendLine(TestSupportsUncheck());
        sb.AppendLine(TestSupportsXmlHttp());
        sb.AppendLine(TestTables());
        sb.AppendLine(TestType());
        sb.AppendLine(TestVBScript());
        sb.AppendLine(TestVersion());
        sb.AppendLine(TestW3CDomVersion());
        sb.AppendLine(TestWin16());
        sb.AppendLine(TestWin32());
        
        return sb.ToString().Replace(Environment.NewLine,"<br
 />");
    }

    String TestActiveXControls() 
    {
        return String.Format("Supports ActiveX controls:
 {0}",
            bCaps.ActiveXControls); 
    }

    String TestAdapters()
    {
        return String.Format("Adapter count: {0}", 
            bCaps.Adapters.Count);
    }
        
    String TestAOL()
    {
        return String.Format("Is an AOL browser: {0}",
 
            bCaps.AOL.ToString());
    }

    String TestBackgroundSounds()
    {
        return String.Format("Supports background sounds:
 {0}",
            bCaps.BackgroundSounds);
    }
        
    String TestBeta()
    {
        return String.Format("Is a beta version: {0}",
 
            bCaps.Beta);
    }
        
    String TestBrowser()
    {
        return String.Format("Browser type: {0}", 
            bCaps.Browser);
    }

    String TestBrowsers()
    {
        return String.Format("Number of browsers in
 dictionary: {0}",
            bCaps.Browsers.Count);
    }

    String TestCombineDeck()
    {
        return String.Format("Can combine forms in
 deck: {0}",
            bCaps.CanCombineFormsInDeck);
    }

    String TestCanCall()
    {
        return String.Format("Can initiate voice call: {0}"
,
            bCaps.CanInitiateVoiceCall);
    }

    String TestCanRenderAfter()
    {
        return String.Format("Can render {0}: {1}",
            "after input or select element",
            bCaps.CanRenderAfterInputOrSelectElement);
    }

    String TestCanRenderEmpty()
    {
        return String.Format("Can render empty selects: {0}"
,
            bCaps.CanRenderEmptySelects);
    }

    String TestCanRenderInputSelectTogether()
    {
        return String.Format("Can render {0} together: {1}"
,
            "input and select elements",
            bCaps.CanRenderInputAndSelectElementsTogether);
    }

    String TestCanRenderMixedSelects()
    {
        return String.Format("Can render mixed selects: {0}"
,
            bCaps.CanRenderMixedSelects);
    }

    String TestCanRenderOneventPrevTogether()
    {
        return String.Format("Can render {0} together: {1}"
,
            "OnEvent and Prev elements",
            bCaps.CanRenderOneventAndPrevElementsTogether);
    }

    String TestCanRenderPostBackCards()
    {
        return String.Format("Can render postback cards:
 {0}",
            bCaps.CanRenderPostBackCards);
    }

    String TestCanRenderSetvar()
    {
        return String.Format("Can render {0}: {1}",
            "setvar elements with a value of 0",
            bCaps.CanRenderSetvarZeroWithMultiSelectionList);
    }

    String TestCanSendMail()
    {
        return String.Format("Can send mail: {0}",
            bCaps.CanSendMail);
    }

    String TestCDF()
    {
        return String.Format("Supports {0}: {1}",
            "Channel Definition Format",
            bCaps.CDF.ToString());
    }

    String TestCLRVersion()
    {
        return String.Format("CLR version on client: {0}"
,
            bCaps.ClrVersion);
    }

    String TestSupportsCookies()
    {
        return String.Format("Supports cookies: {0}"
,
            bCaps.Cookies);
    }

    String TestIsCrawler()
    {
        return String.Format("Is a crawler: {0}",
            bCaps.Crawler);
    }
        
    String TestDefaultSubmitButton()
    {
        return String.Format("Submit button limit: {0}"
,
            bCaps.DefaultSubmitButtonLimit);
    }

    String TestECMAScriptVersion()
    {
        return String.Format("ECMA script version: {0}"
,
            bCaps.EcmaScriptVersion);
    }

    String TestSupportsFrames()
    {
        return String.Format("Supports frames: {0}"
,
            bCaps.Frames);
    }

    String TestGatewayMajorVersion()
    {
        return String.Format("Gateway major version: {0}"
,
            bCaps.GatewayMajorVersion.ToString());
    }

    String TestGatewayMinorVersion()
    {
        return String.Format("Gateway minor version: {0}"
,
            bCaps.GatewayMinorVersion.ToString());
    }

    String TestGatewayVersion()
    {
        return String.Format("Gateway version: {0}"
,
            bCaps.GatewayVersion.ToString());
    }

    String TestHasBackButton()
    {
        return String.Format("Has back button: {0}"
,
            bCaps.HasBackButton.ToString());
    }

    String TestHideRtAlignScrollBars()
    {
        return String.Format("Hide right-aligned {0}: {1}"
,
            "multi-select scrollbars",
            bCaps.HidesRightAlignedMultiselectScrollbars.ToString());
    }

    String TestBrowserID()
    {
        return String.Format("Browser ID: {0}",
            bCaps.Id);
    }

    String TestInputType()
    {
        return String.Format("Supported input type: {0}"
,
            bCaps.InputType);
    }

    String TestIsBrowser()
    {
        return String.Format("Is client a given browser:
 {0}",
            bCaps.IsBrowser("IE").ToString());
    }

    String TestIsColor()
    {
        return String.Format("Is color display: {0}"
,
            bCaps.IsColor.ToString());
    }

    String TestIsMobileDevice()
    {
        return String.Format("Is mobile device: {0}"
,
            bCaps.IsMobileDevice.ToString());
    }

    String TestSupportsJava()
    {
        return String.Format("Supports Java: {0}",
            bCaps.JavaApplets.ToString());
    }

    String TestJavaScript()
    {
        return String.Format("Supports JavaScript: {0}"
,
            bCaps.JavaScript.ToString());
    }

    String TestJScriptVersion()
    {
        return String.Format("JScript version: {0}"
,
            bCaps.JScriptVersion.ToString());
    }

    String TestMajorVersion()
    {
        return String.Format("Major version of browser: {0}"
,
            bCaps.MajorVersion.ToString());
    }

    String TestMaximumHrefLength()
    {
        return String.Format("Max. href length: {0}"
,
            bCaps.MaximumHrefLength.ToString());
    }

    String TestMaximumRenderedPageSize()
    {
        return String.Format("Max. rendered page size in
 bytes: {0}",
            bCaps.MaximumRenderedPageSize.ToString());
    }
        
    String TestMaximumSoftkeyLabelLength()
    {
        return String.Format("Max. softkey label length:
 {0}",
            bCaps.MaximumSoftkeyLabelLength.ToString());
    }
        
    String TestMinorVersion()
    {
        return String.Format("Minor browser version: {0}"
,
            bCaps.MinorVersion.ToString());
    }
        
    String TestMinorVersionString()
    {
        return String.Format("Minor browser version {0}:
 {1}",
            "(as string)",
            bCaps.MinorVersionString);
    }
        
    String TestMobileDeviceManufacturer()
    {
        return String.Format("Mobile device manufacturer:
 {0}",
            bCaps.MobileDeviceManufacturer);
    }

    String TestMobileDeviceModel()
    {
        return String.Format("Mobile device model: {0}"
,
            bCaps.MobileDeviceModel);
    }

    String TestMSDomVersion()
    { 
        return String.Format("MS DOM version: {0}",
            bCaps.MSDomVersion.ToString());
    }

    String TestNumberOfSoftKeys()
    {
        return String.Format("Number of soft keys: {0}"
,
            bCaps.NumberOfSoftkeys.ToString());
    }

    String TestPlatform()
    {
        return String.Format("Platform of client: {0}"
,
            bCaps.Platform);
    }

    String TestPreferredImageMime()
    {
        return String.Format("Preferred image MIME: {0}"
,
            bCaps.PreferredImageMime);
    }

    String TestPreferredRenderingMime()
    {
        return String.Format("Preferred rendering MIME: {0}"
,
            bCaps.PreferredRenderingMime);
    }

    String TestPreferredRenderingType()
    {
        return String.Format("Preferred rendering type: {0}"
,
            bCaps.PreferredRenderingType);
    }

    String TestPreferredRequestEncoding()
    {
        return String.Format("Preferred request encoding:
 {0}",
            bCaps.PreferredRequestEncoding);
    }

    String TestPreferredResponseEncoding()
    {
        return String.Format("Preferred response encoding:
 {0}",
            bCaps.PreferredResponseEncoding);
    }

    String TestRenderBreakBeforeWmlSelectAndInput()
    {
        return String.Format("Renders {0}: {1}",
            "break before WML select/input",
            bCaps.RendersBreakBeforeWmlSelectAndInput.ToString());
    }

    String TestRendersBreaksAfterHtmlLists()
    {
        return String.Format("Renders breaks after HTML lists:
 {0}",
            bCaps.RendersBreaksAfterHtmlLists);
    }

    String TestRendersBreaksAfterWmlAnchor()
    {
        return String.Format("Renders breaks after Wml anchor:
 {0}",
            bCaps.RendersBreaksAfterWmlAnchor);
    }

    String TestRendersBreaksAfterWmlInput()
    {
        return String.Format("Renders breaks after Wml input:
 {0}",
            bCaps.RendersBreaksAfterWmlInput);
    }

    String TestRendersWmlDoAcceptsInline()
    {
        return String.Format("Renders Wml do accepts inline:
 {0}",
            bCaps.RendersWmlDoAcceptsInline);
    }

    String TestRendersWmlSelectsAsMenuCards()
    {
        return String.Format("Renders {0}: {1}",
            "break before WML select/input",
            bCaps.RendersWmlSelectsAsMenuCards);
    }

    String TestRequiredMetaTagNameValue()
    {
        return String.Format("Required meta tag name value:
 {0}",
            bCaps.RequiredMetaTagNameValue);
    }

    String TestRequiresAttributeColonSubstitution()
    {
        return String.Format("Requires {0}: {1}",
            "break before WML select/input",
            bCaps.RequiresAttributeColonSubstitution);
    }

    String TestRequiresContentTypeMetaTag()
    {
        return String.Format("Requires content type meta
 tag: {0}",
            bCaps.RequiresContentTypeMetaTag);
    }

    String TestRequiresControlStateInSession()
    {
        return String.Format("Requires {0}: {1}",
            "control state in session",
            bCaps.RequiresControlStateInSession);
    }

    String TestRequiresDBCSCharacter()
    {
        return String.Format("Requires DBCS character: {0}"
,
            bCaps.RequiresDBCSCharacter);
    }
        
    String TestRequiresHtmlAdaptiveErrorReporting()
    {
        return String.Format("Requires HTML adaptive error
 reporting: {0}",
            bCaps.RequiresHtmlAdaptiveErrorReporting);
    }

    String TestRequiresLeadingPageBreak()
    {
        return String.Format("Requires leading page break:
 {0}",
            bCaps.RequiresLeadingPageBreak);
    }

    String TestRequiresNoBreakInFormatting()
    {
        return String.Format("Requires no break
 in formatting: {0}",
            bCaps.RequiresNoBreakInFormatting);
    }

    String TestRequiresOutputOptimization()
    {
        return String.Format("Requires output optimization:
 {0}",
            bCaps.RequiresOutputOptimization);
    }

    String TestRequiresPhoneNumberAsPlainText()
    {
        return String.Format("Requires phone number as text:
 {0}",
            bCaps.RequiresPhoneNumbersAsPlainText);
    }

    String TestRequiresSpecialViewStateEncoding()
    {
        return String.Format("Requires special viewstate
 encoding: {0}",
            bCaps.RequiresSpecialViewStateEncoding);
    }

    String TestRequiresUniqueFilePathSuffix()
    {
        return String.Format("Requires unique file path suffix:
 {0}",
            bCaps.RequiresUniqueFilePathSuffix);
    }

    String TestRequiresUniqueHtmlCheckboxNames()
    {
        return String.Format("Requires unique HTML checkbox
 names: {0}",
            bCaps.RequiresUniqueHtmlCheckboxNames);
    }

    String TestRequiresUniqueHtmlInputNames()
    {
        return String.Format("Requires unique HTML input
 names: {0}",
            bCaps.RequiresUniqueHtmlInputNames);
    }

    String TestRequiresUrlEncodedPostfieldValues()
    {
        return String.Format("Requires URL encoded postfield
 values: {0}",
            bCaps.RequiresUrlEncodedPostfieldValues);
    }

    String TestScreenBitDepth()
    {
        return String.Format("Screen bit depth: {0}"
,
            bCaps.ScreenBitDepth);
    }

    String TestScreenCharactersHeight()
    {
        return String.Format("Screen height in
 character lines: {0}",
            bCaps.ScreenCharactersHeight);
    }

    String TestScreenCharactersWidth()
    {
        return String.Format("Screen width in
 characters: {0}",
            bCaps.ScreenCharactersWidth);
    }

    String TestScreenPixelsHeight()
    {
        return String.Format("Screen height in
 pixels: {0}",
            bCaps.ScreenPixelsHeight);
    }

    String TestScreenPixelsWidth()
    {
        return String.Format("Screen width in
 pixels: {0}",
            bCaps.ScreenPixelsWidth);
    }

    String TestScreenAccesskeyAttribute()
    {
        return String.Format("Supports ACCESSKEY: {0}"
,
            bCaps.SupportsAccesskeyAttribute);
    }

    String TestSupportsBodyColor()
    {
        return String.Format("Supports body color: {0}"
,
            bCaps.SupportsBodyColor);
    }

    String TestSupportsBold()
    {
        return String.Format("Supports bold: {0}",
            bCaps.SupportsBold);
    }

    String TestSupportsCacheControlMetaTag()
    {
        return String.Format("Supports cache-control meta
 tag: {0}",
            bCaps.SupportsCacheControlMetaTag);
    }

    String TestSupportsCallback()
    {
        return String.Format("Supports callback: {0}"
,
            bCaps.SupportsCallback);
    }

    String TestSupportsCss()
    {
        return String.Format("Supports CSS: {0}",
            bCaps.SupportsCss);
    }

    String TestSupportsDivAlign()
    {
        return String.Format("Supports DIV align: {0}"
,
            bCaps.SupportsDivAlign);
    }

    String TestSupportsDivNoWrap()
    {
        return String.Format("Supports DIV nowrap: {0}"
,
            bCaps.SupportsDivNoWrap);
    }

    String TestSupportsEmptyStringInCookieValue()
    {
        return String.Format("Supports empty string
 in cookie value: {0}",
            bCaps.SupportsEmptyStringInCookieValue);
    }

    String TestSupportsFontColor()
    {
        return String.Format("Supports font color: {0}"
,
            bCaps.SupportsFontColor);
    }

    String TestSupportsFontName()
    {
        return String.Format("Supports font name: {0}"
,
            bCaps.SupportsFontName);
    }

    String TestSupportsFontSize()
    {
        return String.Format("Supports font size: {0}"
,
            bCaps.SupportsFontSize);
    }

    String TestSupportsImageSubmit()
    {
        return String.Format("Supports image submit: {0}"
,
            bCaps.SupportsImageSubmit);
    }

    String TestSupportsIModeSymbols()
    {
        return String.Format("Supports i-mode symbols: {0}"
,
            bCaps.SupportsIModeSymbols);
    }

    String TestSupportsInputIStyle()
    {
        return String.Format("Supports input istyle attribute:
 {0}",
            bCaps.SupportsInputIStyle);
    }

    String TestSupportsInputMode()
    {
        return String.Format("Supports input mode: {0}"
,
            bCaps.SupportsInputMode);
    }

    String TestSupportsItalic()
    {
        return String.Format("Supports italics: {0}"
,
            bCaps.SupportsItalic);
    }

    String TestSupportsJPhoneMultiMediaAttributes()
    {
        return String.Format("Supports JPhone multimedia
 attributes: {0}",
            bCaps.SupportsJPhoneMultiMediaAttributes);
    }

    String TestSupportsJPhoneSymbols()
    {
        return String.Format("Supports JPhone picture symbols:
 {0}",
            bCaps.SupportsJPhoneSymbols);
    }

    String TestSupportsQueryStringInFormAction()
    {
        return String.Format("Supports querystring in
 form action: {0}",
            bCaps.SupportsQueryStringInFormAction);
    }

    String TestSupportsRedirectWithCookie()
    {
        return String.Format("Supports redirect with cookie:
 {0}",
            bCaps.SupportsRedirectWithCookie);
    }

    String TestSupportsSelectMultiple()
    {
        return String.Format("Supports select multiple: {0}"
,
            bCaps.SupportsSelectMultiple);
    }

    String TestSupportsUncheck()
    {
        return String.Format("Supports uncheck: {0}"
,
            bCaps.SupportsUncheck);
    }

    String TestSupportsXmlHttp()
    {
        return String.Format("Supports receiving XML over
 HTTP: {0}",
            bCaps.SupportsXmlHttp);
    }

    String TestTables()
    {
        return String.Format("Supports tables: {0}"
,
            bCaps.Tables);
    }
    
    String TestType()
    {
        return String.Format("Gets the browser name/version:
 {0}",
            bCaps.Type);
    }

    String TestVBScript()
    {
        return String.Format("Supports VBScript: {0}"
,
            bCaps.VBScript);
    }

    String TestVersion()
    {
        string dVer = bCaps.MajorVersion + "." + bCaps.MinorVersion;
        if (Double.Parse(dVer) > 5.01)
        {
            return String.Format("New version: {0}"
,
                bCaps.Version);
        }
        else
        {
            return String.Format("Old version: {0}"
,
                bCaps.Version);
        }
    }

    String TestW3CDomVersion()
    {
        return String.Format("W3C DOM version: {0}"
,
            bCaps.W3CDomVersion);
    }

    String TestWin16()
    {
        return String.Format("Is Win16-based computer: {0}"
,
            bCaps.Win16);
    }

    String TestWin32()
    {
        return String.Format("Is Win32-based computer: {0}"
,
            bCaps.Win32);
    }
</script>
<html  >
<head runat="server">
    <title>Browser Capabilities Sample</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        The current browser has the following capabilities:
        <br />
        <asp:Label ID="OutputLabel" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
.NET Framework のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
  System.Web.Configuration.HttpCapabilitiesBase
     System.Web.HttpBrowserCapabilities
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HttpCapabilitiesBase メンバ
System.Web.Configuration 名前空間

HttpCapabilitiesBase コンストラクタ


HttpCapabilitiesBase プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ ActiveXControls ブラウザが ActiveX コントロールをサポートしているかどうかを示す値を取得します。
パブリック プロパティ Adapters 使用可能なコントロール アダプタのコレクションを返します。
パブリック プロパティ AOL クライアントのブラウザが AOL (America Online) ブラウザかどうかを示す値を取得します。
パブリック プロパティ BackgroundSounds ブラウザが <bgsounds> HTML 要素を使用したバックグラウンド サウンドの再生をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Beta ブラウザがベータ版かどうかを示す値を取得します。
パブリック プロパティ Browser User-Agent 要求ヘッダー内にブラウザによって送信されたブラウザ文字列がある場合は、そのブラウザ文字列を取得します。
パブリック プロパティ Browsers Capabilities ディクショナリ内の、ブラウザの ArrayList を取得します。
パブリック プロパティ CanCombineFormsInDeck ブラウザが、カードなど、複数のフォームを含むデッキをサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanInitiateVoiceCall ブラウザ デバイスが音声呼び出しを開始できるかどうかを示す値を取得します。
パブリック プロパティ CanRenderAfterInputOrSelectElement ブラウザが WML の <select> 要素または <input> 要素の後のページ コンテンツをサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderEmptySelects ブラウザが空の HTML <select> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderInputAndSelectElementsTogether ブラウザが WML の INPUT 要素と SELECT 要素の同じカード上への共存をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderMixedSelects ブラウザが onpick 属性と value 属性の両方を指定する WML <option> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderOneventAndPrevElementsTogether ブラウザが同じ WML カード内での WML の <onevent> 要素と <prev> 要素の共存をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderPostBackCards ブラウザがポストバック用の WML カードをサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderSetvarZeroWithMultiSelectionList ブラウザが、value 属性値が 0 の WML <setvar> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanSendMail ブラウザが電子メール アドレスを表示する HTML <mailto> 要素を使用した電子メールの送信をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Capabilities 定義されているブラウザの機能を取得する目的で内部的に使用されます。
パブリック プロパティ CDF ブラウザが、Web キャスティング用に CDF (Chanel Definition Format) をサポートしているかどうかを示す値を取得します。
パブリック プロパティ ClrVersion クライアントにインストールされている .NET Framework のバージョンを取得します。
パブリック プロパティ Cookies ブラウザが Cookie をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Crawler ブラウザが Web 検索エンジンかどうかを示す値を取得します。
パブリック プロパティ DefaultSubmitButtonLimit 1 つのフォームで許可される送信ボタンの最大数を返します。
パブリック プロパティ EcmaScriptVersion ブラウザがサポートする ECMAScript のバージョン番号を取得します。
パブリック プロパティ Frames ブラウザが HTML フレームをサポートしているかどうかを示す値を取得します。
パブリック プロパティ GatewayMajorVersion サーバーへのアクセスに使用するワイヤレス ゲートウェイのメジャー バージョン番号 (既知の場合) を取得します。
パブリック プロパティ GatewayMinorVersion サーバーへのアクセスに使用するワイヤレス ゲートウェイのマイナ バージョン番号 (既知の場合) を取得します。
パブリック プロパティ GatewayVersion サーバーへのアクセスに使用するワイヤレス ゲートウェイのバージョン (既知の場合) を取得します。
パブリック プロパティ HasBackButton ブラウザに専用の [戻る] ボタンがあるかどうかを示す値を取得します。
パブリック プロパティ HidesRightAlignedMultiselectScrollbars align 属性値が right である HTML <select multiple> 要素のスクロール バーがレンダリング時に非表示になるかどうかを示す値を取得します。
パブリック プロパティ HtmlTextWriter 使用する HtmlTextWriter の完全修飾クラス名を取得または設定します。
パブリック プロパティ Id ブラウザ定義ファイルで指定されているブラウザの内部識別子を取得します。
パブリック プロパティ InputType ブラウザでサポートされている入力の種類を返します。
パブリック プロパティ IsColor ブラウザがカラー表示をサポートしているかどうかを示す値を取得します。
パブリック プロパティ IsMobileDevice ブラウザがモバイル デバイスとして認識されているかどうかを示す値を取得します。
パブリック プロパティ Item 指定したブラウザ機能の値を取得します。C# では、このプロパティはクラスのインデクサです。
パブリック プロパティ JavaApplets ブラウザが Java をサポートしているかどうかを示す値を取得します。
パブリック プロパティ JavaScript ブラウザが JavaScript をサポートしているかどうかを示す値を取得します。
パブリック プロパティ JScriptVersion ブラウザがサポートする Jscript バージョンを取得します。
パブリック プロパティ MajorVersion ブラウザのメジャー (整数) バージョン番号を取得します。
パブリック プロパティ MaximumHrefLength HTML <a> (アンカー) 要素の href 属性の最大文字数を取得します。
パブリック プロパティ MaximumRenderedPageSize ブラウザに表示できるページの最大長 (バイト単位) を取得します。
パブリック プロパティ MaximumSoftkeyLabelLength ソフト キー ラベルに表示できるテキストの最大長を返します。
パブリック プロパティ MinorVersion ブラウザのマイナ (小数) バージョン番号を取得します。
パブリック プロパティ MinorVersionString ブラウザのマイナ (小数) バージョン番号を文字列として取得します。
パブリック プロパティ MobileDeviceManufacturer モバイル デバイスのメーカー名 (既知の場合) を返します。
パブリック プロパティ MobileDeviceModel モバイル デバイスの機種名 (既知の場合) を取得します。
パブリック プロパティ MSDomVersion ブラウザがサポートしている Microsoft HTML (MSHTML) ドキュメント オブジェクト モデル (DOM: Document Object Model) のバージョンを取得します。
パブリック プロパティ NumberOfSoftkeys モバイル デバイスのソフト キーの数を返します。
パブリック プロパティ Platform クライアントが使用するプラットフォームの名前 (既知の場合) を取得します。
パブリック プロパティ PreferredImageMime ブラウザが推奨するイメージ コンテンツの種類の MIME タイプを返します。
パブリック プロパティ PreferredRenderingMime ブラウザが推奨するコンテンツの種類の MIME タイプを返します。
パブリック プロパティ PreferredRenderingType ブラウザが推奨するコンテンツの種類の一般名を取得します。
パブリック プロパティ PreferredRequestEncoding ブラウザが推奨する要求のエンコーディングを取得します。
パブリック プロパティ PreferredResponseEncoding ブラウザが推奨する応答のエンコーディングを取得します。
パブリック プロパティ RendersBreakBeforeWmlSelectAndInput ブラウザが <select> 要素または <input> 要素の前で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersBreaksAfterHtmlLists ブラウザがリスト項目要素の後で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersBreaksAfterWmlAnchor ブラウザがスタンドアロン HTML <a> (アンカー) 要素の後で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersBreaksAfterWmlInput ブラウザが HTML <input> 要素の後で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersWmlDoAcceptsInline モバイル デバイスのブラウザが、WML の do ベースの form accept コンストラクトを、ソフト キーではなくインライン ボタンとしてレンダリングするかどうかを示す値を取得します。
パブリック プロパティ RendersWmlSelectsAsMenuCards ブラウザが WML <select> 要素をコンボ ボックスではなくメニュー カードとしてレンダリングするかどうかを示す値を取得します。
パブリック プロパティ RequiredMetaTagNameValue 一部のブラウザで必要とされるメタ タグを生成する目的で内部的に使用されます。
パブリック プロパティ RequiresAttributeColonSubstitution ブラウザが要素属性値内のコロンを別の文字に置き換えることを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresContentTypeMetaTag ブラウザが content-type 属性が指定された HTML <meta> 要素を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresControlStateInSession ブラウザがコントロールの状態をセッション内に保持することを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresDBCSCharacter ブラウザが 2 バイト文字セットを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresHtmlAdaptiveErrorReporting ブラウザが非標準のエラー メッセージを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresLeadingPageBreak ブラウザが、Web ページ本体内の最初の要素が HTML <br> 要素であることを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresNoBreakInFormatting ブラウザが HTML <br> 要素による改行の書式設定をサポートしていないかどうかを示す値を取得します。
パブリック プロパティ RequiresOutputOptimization ブラウザが最適サイズのマークアップ言語タグが含まれるページを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresPhoneNumbersAsPlainText ブラウザが、プレーンテキストでの電話機を通じたダイヤルをサポートしているかどうか、または特殊マークアップを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresSpecialViewStateEncoding ブラウザが VIEWSTATE 値に対して特殊なエンコードを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUniqueFilePathSuffix ブラウザが一意のフォーム アクション URL を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUniqueHtmlCheckboxNames ブラウザが複数の HTML <input type="checkbox"> 要素にわたって一意の name 属性値を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUniqueHtmlInputNames ブラウザが複数の HTML <input> 要素にわたって一意の name 属性値を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUrlEncodedPostfieldValues ブラウザによって送信されるポストバック データの UrlEncoded が実行されるかどうかを示す値を取得します。
パブリック プロパティ ScreenBitDepth ディスプレイ画面の深度をピクセルあたりのビット数で返します。
パブリック プロパティ ScreenCharactersHeight ディスプレイ画面のおおよその高さを文字の行数で返します。
パブリック プロパティ ScreenCharactersWidth ディスプレイ画面のおおよその幅を文字数単位で返します。
パブリック プロパティ ScreenPixelsHeight ディスプレイ画面のおおよその高さをピクセル単位で返します。
パブリック プロパティ ScreenPixelsWidth ディスプレイ画面のおおよその幅をピクセル単位で返します。
パブリック プロパティ SupportsAccesskeyAttribute ブラウザが HTML の <a> (アンカー) 要素と <input> 要素の ACCESSKEY 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsBodyColor ブラウザが HTML <body> 要素の bgcolor 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsBold ブラウザが HTML <b> 要素による太字テキストの書式設定をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsCacheControlMetaTag ブラウザが HTML <meta> 要素の http-equiv 属性の cache-control 値をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsCallback ブラウザがコールバック スクリプトをサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsCss ブラウザがカスケード スタイル シート (CSS: Cascading Style Sheets) をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsDivAlign ブラウザが HTML <div> 要素の align 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsDivNoWrap ブラウザが HTML <div> 要素の nowrap 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsEmptyStringInCookieValue ブラウザが Cookie 値内の空の (null 参照 (Visual Basic では Nothing)) 文字列をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsFontColor ブラウザが HTML <font> 要素の color 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsFontName ブラウザが HTML <font> 要素の name 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsFontSize ブラウザが HTML <font> 要素の size 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsImageSubmit ブラウザが標準の送信ボタンの代わりにカスタム イメージを使用できるかどうかを示す値を取得します。
パブリック プロパティ SupportsIModeSymbols ブラウザが i モード シンボルをサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsInputIStyle ブラウザが HTML <input> 要素の istyle 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsInputMode ブラウザが HTML <input> 要素の mode 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsItalic ブラウザが HTML <i> 要素による斜体テキストの書式設定をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsJPhoneMultiMediaAttributes ブラウザが J-Phone のマルチメディア属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsJPhoneSymbols ブラウザが J-Phone 固有の絵文字をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsQueryStringInFormAction ブラウザが HTML <form> 要素の action 属性値内のクエリ文字列をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsRedirectWithCookie ブラウザが、リダイレクトで Cookie をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsSelectMultiple ブラウザが HTML <select> 要素の multiple 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsUncheck オンになっている HTML <input type=checkbox> 要素がオフになったときに、その変更がポストバック データに反映されるかどうかを示す値を取得します。
パブリック プロパティ SupportsXmlHttp ブラウザが HTTP 経由の XML 受信をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Tables ブラウザが HTML <table> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ TagWriter ブラウザ用のタグを記述するために使用されるオブジェクトの型を取得する目的で内部的に使用されます。
パブリック プロパティ Type ブラウザの名前とメジャー (整数) バージョン番号を取得します。
パブリック プロパティ UseOptimizedCacheKey 最適化されたキャッシュ キーを使用するかどうかを示す値を取得する目的で内部的に使用されます。
パブリック プロパティ VBScript ブラウザが VBScript (Visual Basic Scripting Edition) をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Version ブラウザの完全なバージョン番号 (整数と小数) を文字列として取得します。
パブリック プロパティ W3CDomVersion ブラウザがサポートしている W3C (World Wide Web Consortium) XML DOM のバージョンを取得します。
パブリック プロパティ Win16 クライアントが Win16 ベースのコンピュータかどうかを示す値を取得します。
パブリック プロパティ Win32 クライアントが Win32 ベースのコンピュータかどうかを示す値を取得します。
参照参照

関連項目

HttpCapabilitiesBase クラス
System.Web.Configuration 名前空間

HttpCapabilitiesBase メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AddBrowser 機能が認識されたブラウザの内部コレクションにエントリを追加する目的で内部的に使用されます。
パブリック メソッド CreateHtmlTextWriter 使用される HtmlTextWriter の新しいインスタンスを作成します。
パブリック メソッド DisableOptimizedCacheKey 最適化されたキャッシュ キーの使用を無効にする目的で内部的に使用されます。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド GetClrVersions クライアントにインストールされている .NET Framework 共通言語ランタイムのすべてのバージョンを返します。
パブリック メソッド GetConfigCapabilities 指定の HttpRequest を生成したブラウザを表す HttpCapabilitiesBase インスタンスを返す目的で内部的に使用されます。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IsBrowser クライアント ブラウザが指定のブラウザと同じかどうかを示す値を取得します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IFilterResolutionService.CompareFilters フィルタを比較する目的で内部的に使用されます。
インターフェイスの明示的な実装 System.Web.UI.IFilterResolutionService.EvaluateFilter フィルタを評価する目的で内部的に使用されます。
参照参照

関連項目

HttpCapabilitiesBase クラス
System.Web.Configuration 名前空間

HttpCapabilitiesBase メンバ

クライアントのブラウザ機能に関する詳細な情報にアクセスできるようにします。

HttpCapabilitiesBase データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド HttpCapabilitiesBase HttpCapabilitiesBase クラスの新しいインスタンスを作成します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ ActiveXControls ブラウザが ActiveX コントロールをサポートしているかどうかを示す値を取得します。
パブリック プロパティ Adapters 使用可能なコントロール アダプタのコレクションを返します。
パブリック プロパティ AOL クライアントのブラウザが AOL (America Online) ブラウザかどうかを示す値を取得します。
パブリック プロパティ BackgroundSounds ブラウザが <bgsounds> HTML 要素を使用したバックグラウンド サウンドの再生をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Beta ブラウザがベータ版かどうかを示す値を取得します。
パブリック プロパティ Browser User-Agent 要求ヘッダー内にブラウザによって送信されたブラウザ文字列がある場合は、そのブラウザ文字列を取得します。
パブリック プロパティ Browsers Capabilities ディクショナリ内の、ブラウザの ArrayList を取得します。
パブリック プロパティ CanCombineFormsInDeck ブラウザが、カードなど、複数のフォームを含むデッキをサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanInitiateVoiceCall ブラウザ デバイスが音声呼び出しを開始できるかどうかを示す値を取得します。
パブリック プロパティ CanRenderAfterInputOrSelectElement ブラウザが WML の <select> 要素または <input> 要素の後のページ コンテンツをサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderEmptySelects ブラウザが空の HTML <select> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderInputAndSelectElementsTogether ブラウザが WML の INPUT 要素と SELECT 要素の同じカード上への共存をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderMixedSelects ブラウザが onpick 属性と value 属性の両方を指定する WML <option> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderOneventAndPrevElementsTogether ブラウザが同じ WML カード内での WML の <onevent> 要素と <prev> 要素の共存をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderPostBackCards ブラウザがポストバック用の WML カードをサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanRenderSetvarZeroWithMultiSelectionList ブラウザが、value 属性値が 0 の WML <setvar> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ CanSendMail ブラウザが電子メール アドレスを表示する HTML <mailto> 要素を使用した電子メールの送信をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Capabilities 定義されているブラウザの機能を取得する目的で内部的に使用されます。
パブリック プロパティ CDF ブラウザが、Web キャスティング用に CDF (Chanel Definition Format) をサポートしているかどうかを示す値を取得します。
パブリック プロパティ ClrVersion クライアントにインストールされている .NET Framework のバージョンを取得します。
パブリック プロパティ Cookies ブラウザが Cookie をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Crawler ブラウザが Web 検索エンジンかどうかを示す値を取得します。
パブリック プロパティ DefaultSubmitButtonLimit 1 つのフォームで許可される送信ボタンの最大数を返します。
パブリック プロパティ EcmaScriptVersion ブラウザがサポートする ECMAScript のバージョン番号を取得します。
パブリック プロパティ Frames ブラウザが HTML フレームをサポートしているかどうかを示す値を取得します。
パブリック プロパティ GatewayMajorVersion サーバーへのアクセスに使用するワイヤレス ゲートウェイのメジャー バージョン番号 (既知の場合) を取得します。
パブリック プロパティ GatewayMinorVersion サーバーへのアクセスに使用するワイヤレス ゲートウェイのマイナ バージョン番号 (既知の場合) を取得します。
パブリック プロパティ GatewayVersion サーバーへのアクセスに使用するワイヤレス ゲートウェイのバージョン (既知の場合) を取得します。
パブリック プロパティ HasBackButton ブラウザに専用の [戻る] ボタンがあるかどうかを示す値を取得します。
パブリック プロパティ HidesRightAlignedMultiselectScrollbars align 属性値が right である HTML <select multiple> 要素のスクロール バーがレンダリング時に非表示になるかどうかを示す値を取得します。
パブリック プロパティ HtmlTextWriter 使用する HtmlTextWriter の完全修飾クラス名を取得または設定します。
パブリック プロパティ Id ブラウザ定義ファイルで指定されているブラウザの内部識別子を取得します。
パブリック プロパティ InputType ブラウザでサポートされている入力の種類を返します。
パブリック プロパティ IsColor ブラウザがカラー表示をサポートしているかどうかを示す値を取得します。
パブリック プロパティ IsMobileDevice ブラウザがモバイル デバイスとして認識されているかどうかを示す値を取得します。
パブリック プロパティ Item 指定したブラウザ機能の値を取得します。C# では、このプロパティはクラスのインデクサです。
パブリック プロパティ JavaApplets ブラウザが Java をサポートしているかどうかを示す値を取得します。
パブリック プロパティ JavaScript ブラウザが JavaScript をサポートしているかどうかを示す値を取得します。
パブリック プロパティ JScriptVersion ブラウザがサポートする Jscript バージョンを取得します。
パブリック プロパティ MajorVersion ブラウザのメジャー (整数) バージョン番号を取得します。
パブリック プロパティ MaximumHrefLength HTML <a> (アンカー) 要素の href 属性の最大文字数を取得します。
パブリック プロパティ MaximumRenderedPageSize ブラウザに表示できるページの最大長 (バイト単位) を取得します。
パブリック プロパティ MaximumSoftkeyLabelLength ソフト キー ラベルに表示できるテキストの最大長を返します。
パブリック プロパティ MinorVersion ブラウザのマイナ (小数) バージョン番号を取得します。
パブリック プロパティ MinorVersionString ブラウザのマイナ (小数) バージョン番号を文字列として取得します。
パブリック プロパティ MobileDeviceManufacturer モバイル デバイスのメーカー名 (既知の場合) を返します。
パブリック プロパティ MobileDeviceModel モバイル デバイスの機種名 (既知の場合) を取得します。
パブリック プロパティ MSDomVersion ブラウザがサポートしている Microsoft HTML (MSHTML) ドキュメント オブジェクト モデル (DOM: Document Object Model) のバージョンを取得します。
パブリック プロパティ NumberOfSoftkeys モバイル デバイスのソフト キーの数を返します。
パブリック プロパティ Platform クライアントが使用するプラットフォームの名前 (既知の場合) を取得します。
パブリック プロパティ PreferredImageMime ブラウザが推奨するイメージ コンテンツの種類の MIME タイプを返します。
パブリック プロパティ PreferredRenderingMime ブラウザが推奨するコンテンツの種類の MIME タイプを返します。
パブリック プロパティ PreferredRenderingType ブラウザが推奨するコンテンツの種類の一般名を取得します。
パブリック プロパティ PreferredRequestEncoding ブラウザが推奨する要求のエンコーディングを取得します。
パブリック プロパティ PreferredResponseEncoding ブラウザが推奨する応答のエンコーディングを取得します。
パブリック プロパティ RendersBreakBeforeWmlSelectAndInput ブラウザが <select> 要素または <input> 要素の前で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersBreaksAfterHtmlLists ブラウザがリスト項目要素の後で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersBreaksAfterWmlAnchor ブラウザがスタンドアロン HTML <a> (アンカー) 要素の後で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersBreaksAfterWmlInput ブラウザが HTML <input> 要素の後で改行するかどうかを示す値を取得します。
パブリック プロパティ RendersWmlDoAcceptsInline モバイル デバイスのブラウザが、WML の do ベースの form accept コンストラクトを、ソフト キーではなくインライン ボタンとしてレンダリングするかどうかを示す値を取得します。
パブリック プロパティ RendersWmlSelectsAsMenuCards ブラウザが WML <select> 要素をコンボ ボックスではなくメニュー カードとしてレンダリングするかどうかを示す値を取得します。
パブリック プロパティ RequiredMetaTagNameValue 一部のブラウザで必要とされるメタ タグを生成する目的で内部的に使用されます。
パブリック プロパティ RequiresAttributeColonSubstitution ブラウザが要素属性値内のコロンを別の文字に置き換えることを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresContentTypeMetaTag ブラウザが content-type 属性が指定された HTML <meta> 要素を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresControlStateInSession ブラウザがコントロールの状態をセッション内に保持することを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresDBCSCharacter ブラウザが 2 バイト文字セットを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresHtmlAdaptiveErrorReporting ブラウザが非標準のエラー メッセージを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresLeadingPageBreak ブラウザが、Web ページ本体内の最初の要素が HTML <br> 要素であることを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresNoBreakInFormatting ブラウザが HTML <br> 要素による改行の書式設定をサポートしていないかどうかを示す値を取得します。
パブリック プロパティ RequiresOutputOptimization ブラウザが最適サイズのマークアップ言語タグが含まれるページを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresPhoneNumbersAsPlainText ブラウザが、プレーンテキストでの電話機を通じたダイヤルをサポートしているかどうか、または特殊マークアップを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresSpecialViewStateEncoding ブラウザが VIEWSTATE 値に対して特殊なエンコードを必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUniqueFilePathSuffix ブラウザが一意のフォーム アクション URL を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUniqueHtmlCheckboxNames ブラウザが複数の HTML <input type="checkbox"> 要素にわたって一意の name 属性値を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUniqueHtmlInputNames ブラウザが複数の HTML <input> 要素にわたって一意の name 属性値を必要とするかどうかを示す値を取得します。
パブリック プロパティ RequiresUrlEncodedPostfieldValues ブラウザによって送信されるポストバック データの UrlEncoded が実行されるかどうかを示す値を取得します。
パブリック プロパティ ScreenBitDepth ディスプレイ画面の深度をピクセルあたりのビット数で返します。
パブリック プロパティ ScreenCharactersHeight ディスプレイ画面のおおよその高さを文字の行数で返します。
パブリック プロパティ ScreenCharactersWidth ディスプレイ画面のおおよその幅を文字数単位で返します。
パブリック プロパティ ScreenPixelsHeight ディスプレイ画面のおおよその高さをピクセル単位で返します。
パブリック プロパティ ScreenPixelsWidth ディスプレイ画面のおおよその幅をピクセル単位で返します。
パブリック プロパティ SupportsAccesskeyAttribute ブラウザが HTML の <a> (アンカー) 要素と <input> 要素の ACCESSKEY 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsBodyColor ブラウザが HTML <body> 要素の bgcolor 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsBold ブラウザが HTML <b> 要素による太字テキストの書式設定をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsCacheControlMetaTag ブラウザが HTML <meta> 要素の http-equiv 属性の cache-control 値をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsCallback ブラウザがコールバック スクリプトをサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsCss ブラウザがカスケード スタイル シート (CSS: Cascading Style Sheets) をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsDivAlign ブラウザが HTML <div> 要素の align 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsDivNoWrap ブラウザが HTML <div> 要素の nowrap 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsEmptyStringInCookieValue ブラウザが Cookie 値内の空の (null 参照 (Visual Basic では Nothing)) 文字列をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsFontColor ブラウザが HTML <font> 要素の color 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsFontName ブラウザが HTML <font> 要素の name 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsFontSize ブラウザが HTML <font> 要素の size 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsImageSubmit ブラウザが標準の送信ボタンの代わりにカスタム イメージを使用できるかどうかを示す値を取得します。
パブリック プロパティ SupportsIModeSymbols ブラウザが i モード シンボルをサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsInputIStyle ブラウザが HTML <input> 要素の istyle 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsInputMode ブラウザが HTML <input> 要素の mode 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsItalic ブラウザが HTML <i> 要素による斜体テキストの書式設定をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsJPhoneMultiMediaAttributes ブラウザが J-Phone のマルチメディア属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsJPhoneSymbols ブラウザが J-Phone 固有の絵文字をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsQueryStringInFormAction ブラウザが HTML <form> 要素の action 属性値内のクエリ文字列をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsRedirectWithCookie ブラウザが、リダイレクトで Cookie をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsSelectMultiple ブラウザが HTML <select> 要素の multiple 属性をサポートしているかどうかを示す値を取得します。
パブリック プロパティ SupportsUncheck オンになっている HTML <input type=checkbox> 要素がオフになったときに、その変更がポストバック データに反映されるかどうかを示す値を取得します。
パブリック プロパティ SupportsXmlHttp ブラウザが HTTP 経由の XML 受信をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Tables ブラウザが HTML <table> 要素をサポートしているかどうかを示す値を取得します。
パブリック プロパティ TagWriter ブラウザ用のタグを記述するために使用されるオブジェクトの型を取得する目的で内部的に使用されます。
パブリック プロパティ Type ブラウザの名前とメジャー (整数) バージョン番号を取得します。
パブリック プロパティ UseOptimizedCacheKey 最適化されたキャッシュ キーを使用するかどうかを示す値を取得する目的で内部的に使用されます。
パブリック プロパティ VBScript ブラウザが VBScript (Visual Basic Scripting Edition) をサポートしているかどうかを示す値を取得します。
パブリック プロパティ Version ブラウザの完全なバージョン番号 (整数と小数) を文字列として取得します。
パブリック プロパティ W3CDomVersion ブラウザがサポートしている W3C (World Wide Web Consortium) XML DOM のバージョンを取得します。
パブリック プロパティ Win16 クライアントが Win16 ベースのコンピュータかどうかを示す値を取得します。
パブリック プロパティ Win32 クライアントが Win32 ベースのコンピュータかどうかを示す値を取得します。
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AddBrowser 機能が認識されたブラウザの内部コレクションにエントリを追加する目的で内部的に使用されます。
パブリック メソッド CreateHtmlTextWriter 使用される HtmlTextWriter の新しいインスタンスを作成します。
パブリック メソッド DisableOptimizedCacheKey 最適化されたキャッシュ キーの使用を無効にする目的で内部的に使用されます。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド GetClrVersions クライアントにインストールされている .NET Framework 共通言語ランタイムのすべてのバージョンを返します。
パブリック メソッド GetConfigCapabilities 指定の HttpRequest を生成したブラウザを表す HttpCapabilitiesBase インスタンスを返す目的で内部的に使用されます。
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsBrowser クライアント ブラウザが指定のブラウザと同じかどうかを示す値を取得します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Web.UI.IFilterResolutionService.CompareFilters フィルタを比較する目的で内部的に使用されます。
インターフェイスの明示的な実装 System.Web.UI.IFilterResolutionService.EvaluateFilter フィルタを評価する目的で内部的に使用されます。
参照参照

関連項目

HttpCapabilitiesBase クラス
System.Web.Configuration 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「HttpCapabilitiesBase」の関連用語

HttpCapabilitiesBaseのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpCapabilitiesBaseのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS