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
- SqlCommand.cs
- TimeoutValidationAttribute.cs
- WebProxyScriptElement.cs
- ObjectStateFormatter.cs
- ButtonField.cs
- EnumBuilder.cs
- PipeSecurity.cs
- FileUtil.cs
- ArgIterator.cs
- _IPv4Address.cs
- CallbackTimeoutsElement.cs
- ReplacementText.cs
- RequestCacheValidator.cs
- ScrollBarAutomationPeer.cs
- RuleSettingsCollection.cs
- TriggerAction.cs
- UshortList2.cs
- CounterSampleCalculator.cs
- AdapterDictionary.cs
- SettingsPropertyIsReadOnlyException.cs
- MetadataArtifactLoader.cs
- PagedControl.cs
- Token.cs
- DataGridViewButtonColumn.cs
- CachedPathData.cs
- SortKey.cs
- ContextMenuService.cs
- FullTrustAssemblyCollection.cs
- NumberSubstitution.cs
- XmlSchemas.cs
- DelayedRegex.cs
- MetadataPropertyCollection.cs
- XPathDescendantIterator.cs
- OdbcConnectionFactory.cs
- ApplicationSecurityManager.cs
- XmlSchemaSimpleTypeUnion.cs
- CursorConverter.cs
- ISAPIRuntime.cs
- Baml2006KnownTypes.cs
- CreateUserErrorEventArgs.cs
- DataViewSetting.cs
- Style.cs
- TrackingMemoryStream.cs
- ListDictionaryInternal.cs
- HostingEnvironmentException.cs
- XmlSchemaComplexContentExtension.cs
- Vector3DAnimation.cs
- UiaCoreTypesApi.cs
- SQLMembershipProvider.cs
- QilDataSource.cs
- SafeFindHandle.cs
- StrongNameKeyPair.cs
- UpdateManifestForBrowserApplication.cs
- BaseDataBoundControl.cs
- SortQuery.cs
- UrlEncodedParameterWriter.cs
- SourceFilter.cs
- ScriptHandlerFactory.cs
- TokenFactoryFactory.cs
- XPathChildIterator.cs
- InplaceBitmapMetadataWriter.cs
- SymDocumentType.cs
- Pen.cs
- HeaderedContentControl.cs
- AsyncResult.cs
- HttpPostedFile.cs
- ListenUriMode.cs
- ReliableChannelListener.cs
- EdmFunction.cs
- MultiPropertyDescriptorGridEntry.cs
- HelpProvider.cs
- ThreadInterruptedException.cs
- Type.cs
- HtmlTableRowCollection.cs
- MenuItemBinding.cs
- JsonFormatGeneratorStatics.cs
- serverconfig.cs
- InkCanvasAutomationPeer.cs
- BasicBrowserDialog.cs
- CacheHelper.cs
- CryptoStream.cs
- SchemaNames.cs
- SqlConnectionString.cs
- SafeEventLogWriteHandle.cs
- DrawingCollection.cs
- TableRowGroup.cs
- AnonymousIdentificationSection.cs
- WebConfigurationHost.cs
- FileSystemWatcher.cs
- MetadataArtifactLoaderCompositeResource.cs
- DesignRelationCollection.cs
- XmlIlVisitor.cs
- SqlDataSourceStatusEventArgs.cs
- ConnectionManagementElement.cs
- TdsValueSetter.cs
- ControlIdConverter.cs
- CryptoKeySecurity.cs
- Documentation.cs
- EntityReference.cs
- Misc.cs