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
- AnimatedTypeHelpers.cs
- SpeechUI.cs
- DefaultDialogButtons.cs
- HttpFileCollection.cs
- IProvider.cs
- CryptoApi.cs
- DodSequenceMerge.cs
- WebConfigurationFileMap.cs
- DataViewManagerListItemTypeDescriptor.cs
- ScalarType.cs
- BitmapFrameDecode.cs
- SeverityFilter.cs
- AutoResetEvent.cs
- TraceRecord.cs
- FixedFindEngine.cs
- Bitmap.cs
- PhysicalAddress.cs
- XmlSchemaObjectTable.cs
- GridViewDeleteEventArgs.cs
- FrameworkRichTextComposition.cs
- UrlMappingCollection.cs
- AutomationAttributeInfo.cs
- ExtenderProvidedPropertyAttribute.cs
- Assert.cs
- HtmlElementErrorEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- WebHttpBinding.cs
- State.cs
- SerializationInfo.cs
- OrderByBuilder.cs
- DetailsViewPageEventArgs.cs
- IsolatedStorageFileStream.cs
- TraceFilter.cs
- DeviceFilterEditorDialog.cs
- PrinterResolution.cs
- ScriptComponentDescriptor.cs
- XamlStream.cs
- webeventbuffer.cs
- Convert.cs
- LabelAutomationPeer.cs
- SamlAction.cs
- Debug.cs
- XamlWriterExtensions.cs
- WindowsEditBox.cs
- GridViewAutomationPeer.cs
- SQLInt16.cs
- GorillaCodec.cs
- Win32.cs
- GradientBrush.cs
- ISO2022Encoding.cs
- BinaryExpressionHelper.cs
- TriggerCollection.cs
- Point4D.cs
- XmlAttributeOverrides.cs
- Int32AnimationUsingKeyFrames.cs
- ExecutionScope.cs
- TextRangeEditLists.cs
- ArrayList.cs
- EntityParameterCollection.cs
- SqlErrorCollection.cs
- Interlocked.cs
- EventItfInfo.cs
- Tile.cs
- NamespaceQuery.cs
- XPathNode.cs
- FileChangesMonitor.cs
- PeerName.cs
- QueryComponents.cs
- DrawingContextWalker.cs
- complextypematerializer.cs
- ToolZone.cs
- Util.cs
- MemberJoinTreeNode.cs
- DataRow.cs
- LinqExpressionNormalizer.cs
- FormsAuthenticationUser.cs
- SoapFormatterSinks.cs
- HMACRIPEMD160.cs
- Token.cs
- SharedStatics.cs
- PersonalizableTypeEntry.cs
- RSAPKCS1SignatureDeformatter.cs
- UserControl.cs
- BlurBitmapEffect.cs
- PictureBox.cs
- WebPartUserCapability.cs
- TypefaceMetricsCache.cs
- IsolatedStorageFilePermission.cs
- NotFiniteNumberException.cs
- PartitionResolver.cs
- ConstantProjectedSlot.cs
- LinqDataSourceHelper.cs
- TrustLevelCollection.cs
- MailFileEditor.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- FontStretch.cs
- FontStyleConverter.cs
- StandardOleMarshalObject.cs
- Margins.cs
- TTSEvent.cs