Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ShellProvider.cs
- ReachDocumentReferenceSerializer.cs
- DataControlLinkButton.cs
- HealthMonitoringSectionHelper.cs
- SinglePageViewer.cs
- PageHandlerFactory.cs
- TrackingParameters.cs
- MailAddress.cs
- XmlMembersMapping.cs
- XPathArrayIterator.cs
- ProxySimple.cs
- TreeViewImageKeyConverter.cs
- SiteOfOriginContainer.cs
- EdmScalarPropertyAttribute.cs
- DefaultProxySection.cs
- MailMessage.cs
- DataGridPagerStyle.cs
- ExtentCqlBlock.cs
- UncommonField.cs
- ProcessThread.cs
- BaseParaClient.cs
- DetailsViewInsertEventArgs.cs
- HtmlInputPassword.cs
- SQLInt16Storage.cs
- Stylesheet.cs
- BindingManagerDataErrorEventArgs.cs
- DXD.cs
- ChangeNode.cs
- IdentitySection.cs
- DesignBindingPicker.cs
- ObjectDataSourceEventArgs.cs
- PeerCredential.cs
- IRCollection.cs
- FileChangesMonitor.cs
- StringFunctions.cs
- ExtenderProvidedPropertyAttribute.cs
- FileDialogCustomPlace.cs
- SafeProcessHandle.cs
- UdpTransportBindingElement.cs
- ToolBarButton.cs
- IISMapPath.cs
- CanonicalFontFamilyReference.cs
- _ConnectStream.cs
- VersionPair.cs
- StorageRoot.cs
- TextRangeEditTables.cs
- ExternalException.cs
- ExpandCollapsePattern.cs
- ModuleElement.cs
- SqlVisitor.cs
- EmbeddedObject.cs
- NetworkStream.cs
- ToolStripSystemRenderer.cs
- XamlBrushSerializer.cs
- AgileSafeNativeMemoryHandle.cs
- SecurityContextTokenCache.cs
- MatrixCamera.cs
- NonNullItemCollection.cs
- UIAgentAsyncBeginRequest.cs
- WebPartCloseVerb.cs
- TableLayoutPanel.cs
- XmlCDATASection.cs
- ModelTreeEnumerator.cs
- HtmlTextArea.cs
- ApplicationHost.cs
- QuaternionAnimationBase.cs
- TreeViewItemAutomationPeer.cs
- XPathSelectionIterator.cs
- DeviceContexts.cs
- PeerTransportElement.cs
- ReferencedType.cs
- HtmlControlPersistable.cs
- DataGridViewComboBoxColumnDesigner.cs
- TraceContextRecord.cs
- ComboBoxItem.cs
- MexTcpBindingElement.cs
- XmlElementList.cs
- DataGridRowHeader.cs
- Descriptor.cs
- Zone.cs
- DesignerAttribute.cs
- ReadWriteObjectLock.cs
- SectionVisual.cs
- TypeConverterHelper.cs
- BehaviorEditorPart.cs
- UmAlQuraCalendar.cs
- _HeaderInfo.cs
- RoleManagerEventArgs.cs
- AssemblySettingAttributes.cs
- ListComponentEditorPage.cs
- AppliedDeviceFiltersDialog.cs
- File.cs
- TextEditorDragDrop.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SplineKeyFrames.cs
- WorkerRequest.cs
- CopyNamespacesAction.cs
- XslCompiledTransform.cs
- FamilyTypefaceCollection.cs
- AttributeCollection.cs