Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NameValueFileSectionHandler.cs
- ConnectionStringSettings.cs
- DecoratedNameAttribute.cs
- assertwrapper.cs
- WmlTextViewAdapter.cs
- WebPartAddingEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- PointAnimationUsingKeyFrames.cs
- GridViewRowCollection.cs
- AsmxEndpointPickerExtension.cs
- RichTextBoxConstants.cs
- RenderDataDrawingContext.cs
- TreeView.cs
- FixedSchema.cs
- Constants.cs
- SQLInt64Storage.cs
- JulianCalendar.cs
- Msec.cs
- ExceptionUtil.cs
- Add.cs
- DispatcherEventArgs.cs
- _RegBlobWebProxyDataBuilder.cs
- WebScriptServiceHost.cs
- StylusCaptureWithinProperty.cs
- DataSourceView.cs
- SettingsProviderCollection.cs
- CounterCreationData.cs
- ListBindingHelper.cs
- ExtensionQuery.cs
- HtmlElementErrorEventArgs.cs
- ArgumentOutOfRangeException.cs
- ProjectedWrapper.cs
- ToolTipService.cs
- PageRanges.cs
- DataViewManagerListItemTypeDescriptor.cs
- EventToken.cs
- XPathMultyIterator.cs
- CurrentChangedEventManager.cs
- StreamingContext.cs
- EntityViewGenerationAttribute.cs
- FamilyTypeface.cs
- ConfigXmlElement.cs
- PreviewKeyDownEventArgs.cs
- ApplicationActivator.cs
- LocalFileSettingsProvider.cs
- StylusPointPropertyInfo.cs
- GcHandle.cs
- InputMethod.cs
- ItemChangedEventArgs.cs
- ProfilePropertyMetadata.cs
- ArrayElementGridEntry.cs
- CodeMemberField.cs
- ExpressionParser.cs
- ErrorHandler.cs
- GridViewHeaderRowPresenter.cs
- _SslState.cs
- MergablePropertyAttribute.cs
- Enum.cs
- PackageController.cs
- QueryStringHandler.cs
- Options.cs
- DetailsViewUpdateEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- Brush.cs
- Error.cs
- CssStyleCollection.cs
- BitmapFrameDecode.cs
- MetadataPropertyAttribute.cs
- ErrorHandler.cs
- UnicastIPAddressInformationCollection.cs
- BezierSegment.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- GridViewColumnHeaderAutomationPeer.cs
- Brush.cs
- DocumentViewerBase.cs
- HandleValueEditor.cs
- EncodingInfo.cs
- webeventbuffer.cs
- DeploymentSectionCache.cs
- XmlSchemaSimpleContentRestriction.cs
- LambdaSerializationException.cs
- MultitargetingHelpers.cs
- ExpressionList.cs
- FontWeight.cs
- TraceSwitch.cs
- TimelineClockCollection.cs
- OuterProxyWrapper.cs
- SliderAutomationPeer.cs
- CroppedBitmap.cs
- RegistryKey.cs
- Operator.cs
- XmlDomTextWriter.cs
- Wildcard.cs
- RequestUriProcessor.cs
- SHA256Managed.cs
- TextDecoration.cs
- HostingEnvironmentException.cs
- CalendarItem.cs
- handlecollector.cs
- ListView.cs