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
- ImageSource.cs
- Grammar.cs
- TextSearch.cs
- PropertyGridCommands.cs
- FormsAuthenticationEventArgs.cs
- RelationalExpressions.cs
- precedingsibling.cs
- BackgroundFormatInfo.cs
- XNodeNavigator.cs
- OSEnvironmentHelper.cs
- String.cs
- WaitingCursor.cs
- SafeSystemMetrics.cs
- TimerEventSubscriptionCollection.cs
- BitmapEffectInput.cs
- CompositeFontParser.cs
- SizeAnimationBase.cs
- InputScopeManager.cs
- QueryExpression.cs
- CommonRemoteMemoryBlock.cs
- ZoomComboBox.cs
- LocalBuilder.cs
- BitmapScalingModeValidation.cs
- Zone.cs
- clipboard.cs
- ListViewDeleteEventArgs.cs
- Context.cs
- ImportCatalogPart.cs
- DbCommandTree.cs
- HtmlElementCollection.cs
- SecondaryViewProvider.cs
- Executor.cs
- isolationinterop.cs
- QilFunction.cs
- sqlser.cs
- CorrelationManager.cs
- CorrelationTokenInvalidatedHandler.cs
- ClientConvert.cs
- ReturnValue.cs
- GroupDescription.cs
- EditBehavior.cs
- CodeObject.cs
- DataReaderContainer.cs
- FormViewPageEventArgs.cs
- SafeNativeMethods.cs
- Wizard.cs
- SelectionBorderGlyph.cs
- CryptoKeySecurity.cs
- DocumentPageView.cs
- CompilerCollection.cs
- RegistrationServices.cs
- NetPipeSection.cs
- LineVisual.cs
- WmlTextViewAdapter.cs
- LateBoundBitmapDecoder.cs
- HttpServerUtilityWrapper.cs
- ControlParameter.cs
- ImmutablePropertyDescriptorGridEntry.cs
- IIS7UserPrincipal.cs
- ItemAutomationPeer.cs
- SpecialNameAttribute.cs
- OleDbMetaDataFactory.cs
- WeakReferenceEnumerator.cs
- StorageEndPropertyMapping.cs
- StringConcat.cs
- IImplicitResourceProvider.cs
- HttpCacheParams.cs
- MarginsConverter.cs
- WebPartConnection.cs
- PartitionResolver.cs
- SoapHeader.cs
- DataError.cs
- BuildProvider.cs
- ProfileGroupSettings.cs
- HotSpot.cs
- DelegateBodyWriter.cs
- Cursor.cs
- KeyedCollection.cs
- MimeMapping.cs
- FileInfo.cs
- ComplusTypeValidator.cs
- Int64AnimationUsingKeyFrames.cs
- DesignBindingPropertyDescriptor.cs
- DocumentPageTextView.cs
- TraceContextRecord.cs
- X509CertificateStore.cs
- EncoderParameter.cs
- BatchStream.cs
- WebControlsSection.cs
- SQLByteStorage.cs
- ExpandableObjectConverter.cs
- DragCompletedEventArgs.cs
- NamedElement.cs
- DecimalConstantAttribute.cs
- CanonicalFontFamilyReference.cs
- LineBreakRecord.cs
- IsolatedStorage.cs
- CultureTableRecord.cs
- DirectionalAction.cs
- XmlReader.cs