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
- TemplateControlBuildProvider.cs
- BooleanExpr.cs
- OdbcConnectionHandle.cs
- Table.cs
- ImplicitInputBrush.cs
- TextFormatterHost.cs
- InternalTypeHelper.cs
- TypeSystem.cs
- MethodRental.cs
- UserMapPath.cs
- ReadingWritingEntityEventArgs.cs
- TheQuery.cs
- FixedDocumentSequencePaginator.cs
- ActivityDefaults.cs
- DataGridViewCellPaintingEventArgs.cs
- ConnectionStringSettings.cs
- WebColorConverter.cs
- AutoCompleteStringCollection.cs
- ClosableStream.cs
- XmlSchemaInfo.cs
- EntitySqlException.cs
- ITextView.cs
- DomainUpDown.cs
- CompatibleComparer.cs
- URLAttribute.cs
- AdPostCacheSubstitution.cs
- WindowsUpDown.cs
- FilteredSchemaElementLookUpTable.cs
- OperationCanceledException.cs
- Token.cs
- XmlElementAttribute.cs
- DataGridRow.cs
- PropertyInfo.cs
- CommonDialog.cs
- LocalClientSecuritySettingsElement.cs
- SerializationException.cs
- TransformDescriptor.cs
- _LocalDataStore.cs
- PtsHost.cs
- ListChunk.cs
- AQNBuilder.cs
- MediaElementAutomationPeer.cs
- XmlEntity.cs
- DummyDataSource.cs
- BindValidationContext.cs
- GC.cs
- StorageScalarPropertyMapping.cs
- DependencyStoreSurrogate.cs
- MultiDataTrigger.cs
- PropertyCondition.cs
- ResXFileRef.cs
- AppSettings.cs
- SystemResourceHost.cs
- AsyncStreamReader.cs
- ToolStripControlHost.cs
- BooleanToVisibilityConverter.cs
- SerializationTrace.cs
- DbUpdateCommandTree.cs
- GlyphRunDrawing.cs
- FlowLayoutPanel.cs
- DataServiceHost.cs
- Component.cs
- WsdlInspector.cs
- PluralizationServiceUtil.cs
- LogLogRecord.cs
- LinkDesigner.cs
- Literal.cs
- EnumerableValidator.cs
- ThumbAutomationPeer.cs
- PageContent.cs
- BitmapInitialize.cs
- ServiceDiscoveryBehavior.cs
- ScrollData.cs
- SimpleType.cs
- PermissionSetTriple.cs
- OracleLob.cs
- BinaryObjectWriter.cs
- OrthographicCamera.cs
- ProviderConnectionPoint.cs
- ProjectionPruner.cs
- HtmlInputPassword.cs
- CssClassPropertyAttribute.cs
- TileBrush.cs
- ValidationEventArgs.cs
- SafeRightsManagementEnvironmentHandle.cs
- Brushes.cs
- AdjustableArrowCap.cs
- SiteMapNodeItem.cs
- XmlEncodedRawTextWriter.cs
- FileClassifier.cs
- UnsafeNativeMethods.cs
- SectionUpdates.cs
- XmlToDatasetMap.cs
- remotingproxy.cs
- DocumentOrderQuery.cs
- ToolStripComboBox.cs
- ViewgenGatekeeper.cs
- HtmlControl.cs
- DeploymentSection.cs
- SecurityPermission.cs