Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebResourceAttribute.cs / 1 / WebResourceAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; using System.Web.Util; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebResourceAttribute : Attribute { private string _contentType; private bool _performSubstitution; private string _webResource; public WebResourceAttribute(string webResource, string contentType) { if (String.IsNullOrEmpty(webResource)) { throw ExceptionUtil.ParameterNullOrEmpty("webResource"); } if (String.IsNullOrEmpty(contentType)) { throw ExceptionUtil.ParameterNullOrEmpty("contentType"); } _contentType = contentType; _webResource = webResource; _performSubstitution = false; } public string ContentType { get { return _contentType; } } public bool PerformSubstitution { get { return _performSubstitution; } set { _performSubstitution = value; } } public string WebResource { get { return _webResource; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; using System.Web.Util; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebResourceAttribute : Attribute { private string _contentType; private bool _performSubstitution; private string _webResource; public WebResourceAttribute(string webResource, string contentType) { if (String.IsNullOrEmpty(webResource)) { throw ExceptionUtil.ParameterNullOrEmpty("webResource"); } if (String.IsNullOrEmpty(contentType)) { throw ExceptionUtil.ParameterNullOrEmpty("contentType"); } _contentType = contentType; _webResource = webResource; _performSubstitution = false; } public string ContentType { get { return _contentType; } } public bool PerformSubstitution { get { return _performSubstitution; } set { _performSubstitution = value; } } public string WebResource { get { return _webResource; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _ConnectStream.cs
- ModelTreeManager.cs
- DataKeyCollection.cs
- DocumentViewerBase.cs
- ListView.cs
- WindowsGraphics.cs
- PageThemeParser.cs
- WebWorkflowRole.cs
- HostedHttpContext.cs
- LambdaCompiler.Expressions.cs
- StickyNote.cs
- SourceFileInfo.cs
- TraceLog.cs
- EdmFunction.cs
- DataGridViewLayoutData.cs
- InstrumentationTracker.cs
- ResizeGrip.cs
- DefaultCommandExtensionCallback.cs
- Point3DConverter.cs
- HtmlControl.cs
- DefaultTextStoreTextComposition.cs
- SqlCommand.cs
- TypePresenter.xaml.cs
- DoubleCollection.cs
- SelectedGridItemChangedEvent.cs
- PeerTransportListenAddressValidator.cs
- DataRowChangeEvent.cs
- SrgsDocument.cs
- SqlUnionizer.cs
- RuntimeArgumentHandle.cs
- ImageDrawing.cs
- Stack.cs
- SQLChars.cs
- UnsafeNativeMethods.cs
- _SslSessionsCache.cs
- RawAppCommandInputReport.cs
- AnnouncementInnerClientCD1.cs
- SqlBuffer.cs
- RelatedCurrencyManager.cs
- ZoneIdentityPermission.cs
- ExpressionPrefixAttribute.cs
- DataGridParentRows.cs
- dbdatarecord.cs
- SQLInt32Storage.cs
- ProcessManager.cs
- Registration.cs
- TdsParameterSetter.cs
- XmlQualifiedNameTest.cs
- ButtonBaseAdapter.cs
- RangeBase.cs
- WarningException.cs
- Int32.cs
- ReadOnlyObservableCollection.cs
- Int32RectConverter.cs
- Type.cs
- GroupItemAutomationPeer.cs
- WebPartZoneBase.cs
- ImageSource.cs
- ArgumentOutOfRangeException.cs
- StylusLogic.cs
- ElementAtQueryOperator.cs
- MimeFormatExtensions.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- RangeValueProviderWrapper.cs
- DataSourceIDConverter.cs
- HttpCapabilitiesBase.cs
- IUnknownConstantAttribute.cs
- OpacityConverter.cs
- RequiredFieldValidator.cs
- MouseGestureConverter.cs
- HtmlForm.cs
- While.cs
- SerializableTypeCodeDomSerializer.cs
- DataGridViewDataConnection.cs
- InfoCardArgumentException.cs
- MediaElementAutomationPeer.cs
- SecurityKeyIdentifierClause.cs
- IndexedWhereQueryOperator.cs
- ProfileManager.cs
- TreeSet.cs
- ConnectionProviderAttribute.cs
- OverflowException.cs
- GeneralTransformGroup.cs
- AutomationIdentifier.cs
- HostingPreferredMapPath.cs
- AliasedSlot.cs
- HtmlString.cs
- EnterpriseServicesHelper.cs
- Utils.cs
- PropertyBuilder.cs
- LocalizabilityAttribute.cs
- AsyncResult.cs
- LinearQuaternionKeyFrame.cs
- Calendar.cs
- AuthenticationSection.cs
- TemplateApplicationHelper.cs
- DescendentsWalkerBase.cs
- QilGeneratorEnv.cs
- BooleanAnimationUsingKeyFrames.cs
- DispatcherSynchronizationContext.cs