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
- ImageAutomationPeer.cs
- DataGridViewTextBoxEditingControl.cs
- SqlInternalConnectionSmi.cs
- SimpleMailWebEventProvider.cs
- Rotation3DAnimation.cs
- TrackingDataItem.cs
- IgnoreDeviceFilterElement.cs
- RemoteWebConfigurationHost.cs
- DataGridViewCellStyleChangedEventArgs.cs
- WebEventCodes.cs
- ServiceOperation.cs
- XmlNamespaceManager.cs
- ToolBar.cs
- UriScheme.cs
- ActivityMarkupSerializer.cs
- DataKeyArray.cs
- InputDevice.cs
- XamlFrame.cs
- EarlyBoundInfo.cs
- SuppressMergeCheckAttribute.cs
- TrailingSpaceComparer.cs
- EnvironmentPermission.cs
- QueryResults.cs
- Aggregates.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ServiceOperationInfoTypeConverter.cs
- ProgressBarRenderer.cs
- PageAsyncTask.cs
- NoneExcludedImageIndexConverter.cs
- SqlDataAdapter.cs
- InternalSendMessage.cs
- WrappedKeySecurityToken.cs
- KnownTypes.cs
- SimpleBitVector32.cs
- XmlRawWriter.cs
- HtmlSelect.cs
- WindowsFormsLinkLabel.cs
- ToolStripSplitStackLayout.cs
- HandlerFactoryWrapper.cs
- RealizationDrawingContextWalker.cs
- CapabilitiesPattern.cs
- TimeSpanMinutesConverter.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- SrgsSubset.cs
- DeploymentSection.cs
- CompiledXpathExpr.cs
- NextPreviousPagerField.cs
- DependencyPropertyDescriptor.cs
- BuildProvider.cs
- ThreadSafeList.cs
- HotSpot.cs
- KeySpline.cs
- StrongBox.cs
- AttachedAnnotation.cs
- XhtmlBasicSelectionListAdapter.cs
- Serializer.cs
- Error.cs
- Encoder.cs
- PictureBox.cs
- HttpChannelBindingToken.cs
- LoginUtil.cs
- XsdCachingReader.cs
- IApplicationTrustManager.cs
- InvokeProviderWrapper.cs
- DataControlFieldCell.cs
- BuildResultCache.cs
- ConditionalAttribute.cs
- ErrorsHelper.cs
- OracleConnectionFactory.cs
- ListItemParagraph.cs
- ContextMenuService.cs
- IDQuery.cs
- OracleFactory.cs
- HtmlTernaryTree.cs
- MultipartIdentifier.cs
- Stopwatch.cs
- ErrorRuntimeConfig.cs
- CustomErrorCollection.cs
- ChildDocumentBlock.cs
- PtsCache.cs
- MetadataArtifactLoaderCompositeFile.cs
- SqlUtils.cs
- ListenerHandler.cs
- DockPattern.cs
- XmlQueryTypeFactory.cs
- MultiDataTrigger.cs
- CodeCatchClauseCollection.cs
- ResourceCategoryAttribute.cs
- AccessViolationException.cs
- SpnegoTokenProvider.cs
- ManipulationLogic.cs
- SystemIcmpV4Statistics.cs
- VisemeEventArgs.cs
- MSG.cs
- TransactionValidationBehavior.cs
- TickBar.cs
- Pair.cs
- SqlConnectionStringBuilder.cs
- XmlNullResolver.cs
- ModelItemKeyValuePair.cs