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
- XmlNullResolver.cs
- Html32TextWriter.cs
- UIElement3D.cs
- SpellerHighlightLayer.cs
- DataGridViewColumn.cs
- CheckBox.cs
- MessagePartSpecification.cs
- ControlValuePropertyAttribute.cs
- DataGridAddNewRow.cs
- NameValueCollection.cs
- UrlMapping.cs
- ExpressionVisitor.cs
- SettingsPropertyValueCollection.cs
- GeneratedCodeAttribute.cs
- TransactionFlowElement.cs
- DesignBindingPicker.cs
- DataGridViewRowsAddedEventArgs.cs
- ConfigurationCollectionAttribute.cs
- VirtualPathProvider.cs
- DataGridViewLayoutData.cs
- OptimalTextSource.cs
- DefaultIfEmptyQueryOperator.cs
- XmlBaseReader.cs
- TextSelection.cs
- ComplexType.cs
- ProfileService.cs
- WebPageTraceListener.cs
- DSASignatureFormatter.cs
- MulticastIPAddressInformationCollection.cs
- Pair.cs
- SessionIDManager.cs
- TemplateControl.cs
- WebPartVerbsEventArgs.cs
- HttpResponseHeader.cs
- WebControl.cs
- LicenseProviderAttribute.cs
- ErrorFormatter.cs
- DrawingCollection.cs
- TreeNodeMouseHoverEvent.cs
- NamedObject.cs
- linebase.cs
- SizeConverter.cs
- Font.cs
- CharConverter.cs
- ThreadLocal.cs
- Button.cs
- StringInfo.cs
- Rect3D.cs
- ArrayExtension.cs
- TemplatingOptionsDialog.cs
- SmtpReplyReader.cs
- Contracts.cs
- WebBrowserBase.cs
- PixelFormat.cs
- EnvironmentPermission.cs
- ActivationArguments.cs
- BaseCollection.cs
- OpCellTreeNode.cs
- CodeMemberMethod.cs
- SqlDelegatedTransaction.cs
- RichTextBoxConstants.cs
- RegexMatchCollection.cs
- UrlUtility.cs
- UIElement.cs
- DBParameter.cs
- HyperLink.cs
- SafeWaitHandle.cs
- ToolStripDesigner.cs
- AutomationPatternInfo.cs
- SizeConverter.cs
- PropertyManager.cs
- DeferredElementTreeState.cs
- SizeConverter.cs
- AssemblyBuilder.cs
- RootCodeDomSerializer.cs
- SqlDesignerDataSourceView.cs
- SettingsSavedEventArgs.cs
- InputLangChangeRequestEvent.cs
- ToolStripLabel.cs
- HwndTarget.cs
- SessionStateSection.cs
- PagerSettings.cs
- AuthenticatingEventArgs.cs
- SecurityKeyType.cs
- TransactionBehavior.cs
- ResetableIterator.cs
- ServiceInfo.cs
- GB18030Encoding.cs
- CodeAccessSecurityEngine.cs
- PageAsyncTaskManager.cs
- BmpBitmapEncoder.cs
- CheckBoxRenderer.cs
- UpdateTranslator.cs
- MouseEvent.cs
- SecurityHeader.cs
- TraceRecord.cs
- DirectionalLight.cs
- ExpressionSelection.cs
- HttpCacheVary.cs
- CodeArgumentReferenceExpression.cs