Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / TagPrefixAttribute.cs / 1 / TagPrefixAttribute.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 TagPrefixAttribute : Attribute { private string namespaceName; private string tagPrefix; public TagPrefixAttribute(string namespaceName, string tagPrefix) { if (String.IsNullOrEmpty(namespaceName)) { throw ExceptionUtil.ParameterNullOrEmpty("namespaceName"); } if (String.IsNullOrEmpty(tagPrefix)) { throw ExceptionUtil.ParameterNullOrEmpty("tagPrefix"); } this.namespaceName = namespaceName; this.tagPrefix = tagPrefix; } public string NamespaceName { get { return namespaceName; } } public string TagPrefix { get { return tagPrefix; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //// 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 TagPrefixAttribute : Attribute { private string namespaceName; private string tagPrefix; public TagPrefixAttribute(string namespaceName, string tagPrefix) { if (String.IsNullOrEmpty(namespaceName)) { throw ExceptionUtil.ParameterNullOrEmpty("namespaceName"); } if (String.IsNullOrEmpty(tagPrefix)) { throw ExceptionUtil.ParameterNullOrEmpty("tagPrefix"); } this.namespaceName = namespaceName; this.tagPrefix = tagPrefix; } public string NamespaceName { get { return namespaceName; } } public string TagPrefix { get { return tagPrefix; } } } } // 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
- DBConnectionString.cs
- _AutoWebProxyScriptEngine.cs
- MaterialCollection.cs
- ToolStripItemDesigner.cs
- ThreadExceptionEvent.cs
- PinnedBufferMemoryStream.cs
- DataGridViewDataConnection.cs
- KeyEvent.cs
- JavascriptCallbackMessageInspector.cs
- ReadOnlyMetadataCollection.cs
- Types.cs
- ResourceDisplayNameAttribute.cs
- StylusPointPropertyInfoDefaults.cs
- SinglePageViewer.cs
- Int64Converter.cs
- ActivityDesignerLayoutSerializers.cs
- MsmqInputMessagePool.cs
- XmlBoundElement.cs
- CodeAccessPermission.cs
- Misc.cs
- PathStreamGeometryContext.cs
- LocatorManager.cs
- _SSPIWrapper.cs
- ObjectDataSourceDisposingEventArgs.cs
- ChannelSinkStacks.cs
- LookupNode.cs
- ItemContainerGenerator.cs
- SharedStatics.cs
- PointLightBase.cs
- OletxVolatileEnlistment.cs
- Guid.cs
- AddingNewEventArgs.cs
- DataTransferEventArgs.cs
- InputScope.cs
- ButtonFlatAdapter.cs
- AutomationPeer.cs
- BaseHashHelper.cs
- AssemblyInfo.cs
- WpfXamlType.cs
- SecurityPermission.cs
- RotateTransform.cs
- Propagator.JoinPropagator.cs
- OdbcEnvironmentHandle.cs
- DataRecordInternal.cs
- TextServicesCompartment.cs
- CacheAxisQuery.cs
- SQLDateTime.cs
- DCSafeHandle.cs
- _SSPIWrapper.cs
- XmlValidatingReader.cs
- HtmlUtf8RawTextWriter.cs
- DataControlLinkButton.cs
- UpdateExpressionVisitor.cs
- TextParagraphProperties.cs
- MenuItemBinding.cs
- OpenFileDialog.cs
- JapaneseLunisolarCalendar.cs
- EdmFunctions.cs
- BindingGroup.cs
- RuntimeUtils.cs
- KeyNotFoundException.cs
- HttpMethodAttribute.cs
- TrackingStringDictionary.cs
- Util.cs
- SocketElement.cs
- RegexCapture.cs
- SplashScreen.cs
- SqlGatherProducedAliases.cs
- CodeNamespaceCollection.cs
- NativeMethods.cs
- unitconverter.cs
- CheckBox.cs
- FlowSwitchDesigner.xaml.cs
- Pair.cs
- ServiceSecurityAuditBehavior.cs
- ImageIndexConverter.cs
- KnownColorTable.cs
- Script.cs
- StylusCollection.cs
- RefType.cs
- CultureTable.cs
- BidOverLoads.cs
- RTLAwareMessageBox.cs
- AccessDataSource.cs
- InProcStateClientManager.cs
- BezierSegment.cs
- CompilerWrapper.cs
- WebBrowserNavigatedEventHandler.cs
- MimeTypeMapper.cs
- wgx_exports.cs
- ImageBrush.cs
- StatusBarDrawItemEvent.cs
- Qualifier.cs
- Rect.cs
- Baml2006ReaderFrame.cs
- Logging.cs
- WindowsGraphicsCacheManager.cs
- OptimalBreakSession.cs
- UIElementParaClient.cs
- CacheMode.cs