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
- DataGridViewColumn.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DecimalFormatter.cs
- BaseWebProxyFinder.cs
- MergeFilterQuery.cs
- RtfControls.cs
- Property.cs
- AdRotator.cs
- LinkDesigner.cs
- QueryComponents.cs
- WebException.cs
- PropVariant.cs
- BitSet.cs
- XmlName.cs
- HealthMonitoringSection.cs
- InstrumentationTracker.cs
- HttpRequest.cs
- AnnotationAuthorChangedEventArgs.cs
- MessageQueueKey.cs
- DateTimeUtil.cs
- FormView.cs
- RawStylusSystemGestureInputReport.cs
- ComponentRenameEvent.cs
- EdmSchemaError.cs
- TreeChangeInfo.cs
- ListViewGroupConverter.cs
- DataBoundControlAdapter.cs
- SQLCharsStorage.cs
- LinqDataSourceView.cs
- autovalidator.cs
- FileAuthorizationModule.cs
- EventSinkHelperWriter.cs
- PrivilegedConfigurationManager.cs
- AssociationTypeEmitter.cs
- XmlDataProvider.cs
- EasingKeyFrames.cs
- GenericParameterDataContract.cs
- FormViewDeletedEventArgs.cs
- TextContainerChangedEventArgs.cs
- CatalogPartCollection.cs
- PerfCounters.cs
- Cloud.cs
- XmlWrappingWriter.cs
- Automation.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- XsdCachingReader.cs
- JoinElimination.cs
- SecurityResources.cs
- PassportIdentity.cs
- FamilyMap.cs
- AnnotationComponentChooser.cs
- ProviderMetadata.cs
- AutoResizedEvent.cs
- Tokenizer.cs
- QilInvokeEarlyBound.cs
- CryptoApi.cs
- ConnectionConsumerAttribute.cs
- ProofTokenCryptoHandle.cs
- CaseStatementProjectedSlot.cs
- DataContractSet.cs
- ClientBuildManager.cs
- XmlSchemaComplexContentRestriction.cs
- ToolStripRenderEventArgs.cs
- RichTextBoxConstants.cs
- MultipleViewProviderWrapper.cs
- TextStore.cs
- FrameworkEventSource.cs
- FilteredDataSetHelper.cs
- AssemblySettingAttributes.cs
- ToolStripContainer.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- WebAdminConfigurationHelper.cs
- DataControlCommands.cs
- DirectoryInfo.cs
- Storyboard.cs
- ContainerUIElement3D.cs
- ImageCodecInfoPrivate.cs
- streamingZipPartStream.cs
- MatrixCamera.cs
- InputBindingCollection.cs
- AddValidationError.cs
- AccessDataSourceView.cs
- LoginDesignerUtil.cs
- DependencyStoreSurrogate.cs
- ToolStripStatusLabel.cs
- NumberAction.cs
- SortableBindingList.cs
- NetNamedPipeSecurityMode.cs
- RectKeyFrameCollection.cs
- BitSet.cs
- HttpRequestCacheValidator.cs
- SyndicationElementExtension.cs
- EventEntry.cs
- XmlDataCollection.cs
- ExpandedWrapper.cs
- UnsafeNativeMethods.cs
- DocumentApplicationJournalEntry.cs
- __ComObject.cs
- CustomCredentialPolicy.cs
- SQLUtility.cs