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
- WorkflowRuntimeServiceElementCollection.cs
- XmlConvert.cs
- UIPermission.cs
- EntryIndex.cs
- AccessDataSource.cs
- TextRange.cs
- CookieProtection.cs
- SelectionList.cs
- ReliableOutputSessionChannel.cs
- ADRoleFactoryConfiguration.cs
- RegexCompilationInfo.cs
- PropertyTabChangedEvent.cs
- Buffer.cs
- StyleCollection.cs
- DbModificationCommandTree.cs
- ContainsRowNumberChecker.cs
- UnmanagedMarshal.cs
- PropertyDescriptorCollection.cs
- WindowsListViewItemCheckBox.cs
- SmtpCommands.cs
- ExtendLockAsyncResult.cs
- IsolatedStorageSecurityState.cs
- ServiceElementCollection.cs
- EntitySetBase.cs
- InputLanguageSource.cs
- PartitionResolver.cs
- QilExpression.cs
- AsymmetricAlgorithm.cs
- SAPIEngineTypes.cs
- PreviousTrackingServiceAttribute.cs
- ObjectQueryState.cs
- WindowsToolbarItemAsMenuItem.cs
- OleDbConnectionInternal.cs
- AmbientValueAttribute.cs
- Utils.cs
- FontFamilyValueSerializer.cs
- ClientRuntimeConfig.cs
- KeyPressEvent.cs
- SemanticResolver.cs
- MouseBinding.cs
- HtmlSelect.cs
- AsyncStreamReader.cs
- InternalBufferOverflowException.cs
- TeredoHelper.cs
- AutoScrollHelper.cs
- PersistChildrenAttribute.cs
- ProfileEventArgs.cs
- BitmapInitialize.cs
- BooleanKeyFrameCollection.cs
- SettingsProviderCollection.cs
- ListViewPagedDataSource.cs
- Vertex.cs
- TextTreeText.cs
- HotSpotCollection.cs
- ScriptingWebServicesSectionGroup.cs
- BitmapFrame.cs
- UserControlDocumentDesigner.cs
- CheckBoxRenderer.cs
- DataControlFieldHeaderCell.cs
- Enum.cs
- ExpressionConverter.cs
- SecurityCapabilities.cs
- CompositionTarget.cs
- BufferBuilder.cs
- NullableConverter.cs
- XamlFigureLengthSerializer.cs
- ValidatingPropertiesEventArgs.cs
- PropertyCondition.cs
- UserControlParser.cs
- SecureConversationSecurityTokenParameters.cs
- SetterBase.cs
- DetailsViewRowCollection.cs
- RoutedCommand.cs
- AdRotator.cs
- DateTimeOffset.cs
- AssociationSetEnd.cs
- Set.cs
- Int32CollectionConverter.cs
- FormViewAutoFormat.cs
- ToolCreatedEventArgs.cs
- WebPageTraceListener.cs
- ActiveXHost.cs
- QilGenerator.cs
- BufferModeSettings.cs
- DependencyObjectPropertyDescriptor.cs
- InfoCardService.cs
- ClassicBorderDecorator.cs
- CompiledQueryCacheEntry.cs
- InnerItemCollectionView.cs
- CodeTypeReferenceExpression.cs
- SafeFileHandle.cs
- ReliableDuplexSessionChannel.cs
- HWStack.cs
- MsdtcWrapper.cs
- CompModSwitches.cs
- RootBuilder.cs
- ObjectHandle.cs
- SamlAssertion.cs
- RightNameExpirationInfoPair.cs
- GridItem.cs