Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
//-----------------------------------------------------------------------------
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InheritedPropertyChangedEventArgs.cs
- UidManager.cs
- CodeVariableDeclarationStatement.cs
- SimpleHandlerFactory.cs
- Internal.cs
- BamlBinaryReader.cs
- XmlSchemaAppInfo.cs
- UserControlParser.cs
- SelectionRange.cs
- DoubleLinkListEnumerator.cs
- AuthenticationModuleElementCollection.cs
- Root.cs
- ControlHelper.cs
- HelpProvider.cs
- SQLInt32Storage.cs
- TemplateParser.cs
- DataRelation.cs
- CodeMemberProperty.cs
- DataTrigger.cs
- PopOutPanel.cs
- _AutoWebProxyScriptHelper.cs
- SerialErrors.cs
- WebPartVerb.cs
- EventLogInternal.cs
- BaseDataListActionList.cs
- Italic.cs
- PrePostDescendentsWalker.cs
- DtdParser.cs
- SymmetricCryptoHandle.cs
- TimeIntervalCollection.cs
- FormsAuthentication.cs
- NamedPermissionSet.cs
- TextFragmentEngine.cs
- XmlTypeMapping.cs
- FactoryMaker.cs
- HierarchicalDataBoundControlAdapter.cs
- WizardForm.cs
- RadioButton.cs
- XmlSchemaAnnotation.cs
- CircleHotSpot.cs
- DataReaderContainer.cs
- httpserverutility.cs
- NameTable.cs
- CompModSwitches.cs
- ImageButton.cs
- DbCommandDefinition.cs
- PersonalizationProviderCollection.cs
- JsonServiceDocumentSerializer.cs
- SmtpAuthenticationManager.cs
- RequiredAttributeAttribute.cs
- DataBoundControl.cs
- ConfigXmlCDataSection.cs
- BasicExpandProvider.cs
- Ipv6Element.cs
- tibetanshape.cs
- ModuleBuilder.cs
- SignedXmlDebugLog.cs
- SQLInt32Storage.cs
- IntSecurity.cs
- TypeInfo.cs
- ServiceInfoCollection.cs
- CellTreeNodeVisitors.cs
- X509CertificateCollection.cs
- UnionExpr.cs
- SecUtil.cs
- TextHidden.cs
- HitTestParameters.cs
- StylusShape.cs
- XamlFxTrace.cs
- IpcClientManager.cs
- SoapSchemaExporter.cs
- CompilerCollection.cs
- ProtocolsConfiguration.cs
- LineProperties.cs
- ImageCodecInfo.cs
- GroupLabel.cs
- _ContextAwareResult.cs
- PrimitiveList.cs
- ThaiBuddhistCalendar.cs
- Quaternion.cs
- EventEntry.cs
- ReverseQueryOperator.cs
- ExpressionLexer.cs
- XamlToRtfParser.cs
- TypeUnloadedException.cs
- CodeTypeReference.cs
- OracleParameter.cs
- ILGenerator.cs
- BinaryFormatterWriter.cs
- DataGridViewCellPaintingEventArgs.cs
- oledbmetadatacollectionnames.cs
- WindowsListViewSubItem.cs
- CompensationHandlingFilter.cs
- ExpressionParser.cs
- XmlArrayItemAttribute.cs
- ConfigurationValues.cs
- SkewTransform.cs
- WebPartEventArgs.cs
- Column.cs
- TypeConstant.cs