Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / Expressions / CustomExpression.cs / 1305376 / CustomExpression.cs
#if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls.Expressions { using System.Web; using Microsoft.Web.Query.Dynamic; #else namespace System.Web.UI.WebControls.Expressions { using System.Web.Query.Dynamic; #endif using System; using System.Linq.Expressions; using System.Security.Permissions; using System.Text.RegularExpressions; using System.Web.UI; using System.Web.UI.WebControls; using System.Collections.Generic; using System.Linq; [ PersistChildren(false), ParseChildren(true, "Parameters") ] public class CustomExpression : ParameterDataSourceExpression { private EventHandler_querying; public event EventHandler Querying { add { _querying += value; } remove { _querying -= value; } } public override IQueryable GetQueryable(IQueryable source) { CustomExpressionEventArgs e = new CustomExpressionEventArgs(source, GetValues()); OnQuerying(e); return e.Query; } private void OnQuerying(CustomExpressionEventArgs e) { if (_querying != null) { _querying(this, e); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. #if ORYX_VNEXT namespace Microsoft.Web.Data.UI.WebControls.Expressions { using System.Web; using Microsoft.Web.Query.Dynamic; #else namespace System.Web.UI.WebControls.Expressions { using System.Web.Query.Dynamic; #endif using System; using System.Linq.Expressions; using System.Security.Permissions; using System.Text.RegularExpressions; using System.Web.UI; using System.Web.UI.WebControls; using System.Collections.Generic; using System.Linq; [ PersistChildren(false), ParseChildren(true, "Parameters") ] public class CustomExpression : ParameterDataSourceExpression { private EventHandler _querying; public event EventHandler Querying { add { _querying += value; } remove { _querying -= value; } } public override IQueryable GetQueryable(IQueryable source) { CustomExpressionEventArgs e = new CustomExpressionEventArgs(source, GetValues()); OnQuerying(e); return e.Query; } private void OnQuerying(CustomExpressionEventArgs e) { if (_querying != null) { _querying(this, e); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- wgx_render.cs
- X509PeerCertificateAuthentication.cs
- GradientBrush.cs
- ContentFilePart.cs
- ErrorsHelper.cs
- GridViewRowPresenter.cs
- WebPartCancelEventArgs.cs
- ColorBlend.cs
- Int32RectConverter.cs
- XmlQueryRuntime.cs
- EncryptedKey.cs
- DataGridSortCommandEventArgs.cs
- XmlILOptimizerVisitor.cs
- OciLobLocator.cs
- Transform3D.cs
- LinkedResourceCollection.cs
- WebPartManagerInternals.cs
- DeploymentExceptionMapper.cs
- FolderBrowserDialog.cs
- DataReaderContainer.cs
- XmlNamedNodeMap.cs
- Connection.cs
- GlobalizationSection.cs
- WebPartsPersonalization.cs
- EmbeddedObject.cs
- StorageMappingItemLoader.cs
- MouseEvent.cs
- PieceNameHelper.cs
- FileSecurity.cs
- SqlIdentifier.cs
- Convert.cs
- SigningCredentials.cs
- Duration.cs
- DomNameTable.cs
- CodeTypeReferenceExpression.cs
- LayoutEditorPart.cs
- PropertyTabAttribute.cs
- InvalidFilterCriteriaException.cs
- HitTestWithPointDrawingContextWalker.cs
- TransformerInfo.cs
- MethodBody.cs
- ArgumentFixer.cs
- NumberSubstitution.cs
- PointKeyFrameCollection.cs
- PeerCollaboration.cs
- DelegatedStream.cs
- SequenceDesigner.xaml.cs
- PseudoWebRequest.cs
- TypefaceCollection.cs
- StringConcat.cs
- AudioSignalProblemOccurredEventArgs.cs
- UpdatePanelTrigger.cs
- BCLDebug.cs
- SoapMessage.cs
- SafeFileMappingHandle.cs
- XamlFilter.cs
- JsonObjectDataContract.cs
- ForeignConstraint.cs
- BlobPersonalizationState.cs
- SortedSetDebugView.cs
- InternalTypeHelper.cs
- CatalogPart.cs
- RewritingProcessor.cs
- RelationshipManager.cs
- InputScope.cs
- MD5.cs
- ListViewInsertedEventArgs.cs
- RelatedPropertyManager.cs
- DecoderNLS.cs
- PageThemeCodeDomTreeGenerator.cs
- EntityDataSourceWizardForm.cs
- MetadataArtifactLoaderCompositeResource.cs
- MediaElementAutomationPeer.cs
- JpegBitmapEncoder.cs
- DriveInfo.cs
- SecurityTokenValidationException.cs
- UnsafeNativeMethodsPenimc.cs
- WebPartsPersonalization.cs
- PointAnimationClockResource.cs
- HandleCollector.cs
- FtpWebResponse.cs
- InvalidAsynchronousStateException.cs
- SHA256CryptoServiceProvider.cs
- OLEDB_Enum.cs
- VSWCFServiceContractGenerator.cs
- DesignerSerializationOptionsAttribute.cs
- Crc32.cs
- ConditionValidator.cs
- ConnectionOrientedTransportManager.cs
- SmiContextFactory.cs
- BigInt.cs
- XPathConvert.cs
- ACL.cs
- SqlCaseSimplifier.cs
- CellParagraph.cs
- EventWaitHandleSecurity.cs
- OleDbParameterCollection.cs
- TextTrailingWordEllipsis.cs
- NavigationExpr.cs
- FilterElement.cs