Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CodeChecksumPragma.cs
- CustomAttribute.cs
- RewritingSimplifier.cs
- ListViewHitTestInfo.cs
- BuildResult.cs
- RowUpdatingEventArgs.cs
- GetCryptoTransformRequest.cs
- Script.cs
- HtmlInputButton.cs
- ToolboxItemSnapLineBehavior.cs
- Win32Exception.cs
- IdnElement.cs
- Control.cs
- ConsoleCancelEventArgs.cs
- LongTypeConverter.cs
- ListViewDeleteEventArgs.cs
- SignatureHelper.cs
- SettingsSection.cs
- SqlNode.cs
- EventMetadata.cs
- SelectQueryOperator.cs
- ChannelCacheDefaults.cs
- ExitEventArgs.cs
- DataTable.cs
- ComPlusServiceHost.cs
- XmlAttribute.cs
- Resources.Designer.cs
- NativeRightsManagementAPIsStructures.cs
- BufferedStream.cs
- DataListItemEventArgs.cs
- FontDifferentiator.cs
- IndexedEnumerable.cs
- NamedServiceModelExtensionCollectionElement.cs
- XamlBuildTaskServices.cs
- _SecureChannel.cs
- SoapTypeAttribute.cs
- SqlCachedBuffer.cs
- CodeEntryPointMethod.cs
- BindingOperations.cs
- ArgumentDesigner.xaml.cs
- ViewKeyConstraint.cs
- WebSysDescriptionAttribute.cs
- _SslState.cs
- CommonProperties.cs
- ViewCellRelation.cs
- XmlILConstructAnalyzer.cs
- FunctionDescription.cs
- XsltLoader.cs
- ContextMenu.cs
- SelfIssuedSamlTokenFactory.cs
- HashCryptoHandle.cs
- ValidationErrorEventArgs.cs
- ProfileSection.cs
- EllipticalNodeOperations.cs
- NumberFormatInfo.cs
- DataGridColumnHeadersPresenter.cs
- log.cs
- Identity.cs
- ParameterEditorUserControl.cs
- ManagementNamedValueCollection.cs
- NetCodeGroup.cs
- FloaterParagraph.cs
- Stylus.cs
- FormsAuthenticationModule.cs
- BinaryQueryOperator.cs
- DataReaderContainer.cs
- CodePageEncoding.cs
- EdmValidator.cs
- ConditionValidator.cs
- ComponentEditorForm.cs
- indexingfiltermarshaler.cs
- SchemaConstraints.cs
- HtmlInputHidden.cs
- MiniConstructorInfo.cs
- ExpandCollapsePattern.cs
- RuntimeResourceSet.cs
- UIElementParaClient.cs
- BrowserDefinitionCollection.cs
- ViewPort3D.cs
- SystemPens.cs
- EntryWrittenEventArgs.cs
- ConnectivityStatus.cs
- IIS7UserPrincipal.cs
- AssemblyLoader.cs
- KeysConverter.cs
- TemplateInstanceAttribute.cs
- ModelPropertyImpl.cs
- BooleanToVisibilityConverter.cs
- TextEditor.cs
- XmlSchemaNotation.cs
- HttpWriter.cs
- OleDbErrorCollection.cs
- OpenTypeCommon.cs
- MarkerProperties.cs
- MetadataCollection.cs
- DataGridLinkButton.cs
- SoundPlayerAction.cs
- MultiAsyncResult.cs
- PropertyChangedEventManager.cs
- NativeMethods.cs