mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
52 lines
1.8 KiB
C#
52 lines
1.8 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="DataControlFieldCell.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.UI.WebControls {
|
|
|
|
using System;
|
|
using System.Web.UI.WebControls;
|
|
|
|
|
|
/// <devdoc>
|
|
/// <para>Creates a special cell that is contained within a DataControlField.</para>
|
|
/// </devdoc>
|
|
public class DataControlFieldCell : TableCell {
|
|
DataControlField _containingField;
|
|
|
|
|
|
public DataControlFieldCell(DataControlField containingField) {
|
|
_containingField = containingField;
|
|
}
|
|
|
|
|
|
protected DataControlFieldCell(HtmlTextWriterTag tagKey, DataControlField containingField) : base(tagKey) {
|
|
_containingField = containingField;
|
|
}
|
|
|
|
|
|
public DataControlField ContainingField {
|
|
get {
|
|
return _containingField;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// <see cref='System.Web.UI.WebControls.DataControlFieldCell'/> gets the value of ValidateRequestMode from it's <see cref='System.Web.UI.WebControls.DataControlFieldCell.ContainingField'/>.
|
|
/// The ValidateRequestMode property should not be set directly on <see cref='System.Web.UI.WebControls.DataControlFieldCell'/>.
|
|
/// </summary>
|
|
public override ValidateRequestMode ValidateRequestMode {
|
|
get {
|
|
return _containingField.ValidateRequestMode;
|
|
}
|
|
set {
|
|
throw new InvalidOperationException(SR.GetString(SR.DataControlFieldCell_ShouldNotSetValidateRequestMode));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|