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
- PipelineComponent.cs
- GeneralTransform.cs
- SynchronizationContext.cs
- WaitHandleCannotBeOpenedException.cs
- LocalizableAttribute.cs
- CompletionCallbackWrapper.cs
- UiaCoreProviderApi.cs
- BufferedWebEventProvider.cs
- FixedHighlight.cs
- MailDefinition.cs
- TextAdaptor.cs
- ArrayHelper.cs
- FilteredDataSetHelper.cs
- ChildTable.cs
- BreakRecordTable.cs
- FixedPageStructure.cs
- CmsInterop.cs
- EntitySetRetriever.cs
- DataObject.cs
- CoTaskMemHandle.cs
- RawStylusInput.cs
- XmlAnyAttributeAttribute.cs
- SmtpAuthenticationManager.cs
- ScheduleChanges.cs
- cookiecollection.cs
- DataSvcMapFile.cs
- FunctionMappingTranslator.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Sentence.cs
- WebPartManager.cs
- InstanceOwnerException.cs
- SchemaElement.cs
- EmptyEnumerable.cs
- RegistrationServices.cs
- ReadOnlyNameValueCollection.cs
- _SingleItemRequestCache.cs
- ToolStripSeparator.cs
- NoResizeSelectionBorderGlyph.cs
- CompModHelpers.cs
- TabItemWrapperAutomationPeer.cs
- InvokeWebService.cs
- SqlCacheDependencyDatabaseCollection.cs
- DatagridviewDisplayedBandsData.cs
- WebPartCatalogCloseVerb.cs
- NavigationPropertyAccessor.cs
- ClientRolePrincipal.cs
- SelectionPatternIdentifiers.cs
- UidManager.cs
- TiffBitmapDecoder.cs
- Panel.cs
- ArrangedElement.cs
- SpecialFolderEnumConverter.cs
- EdmToObjectNamespaceMap.cs
- DivideByZeroException.cs
- URLBuilder.cs
- XmlSchemas.cs
- SoapParser.cs
- PictureBox.cs
- DrawingVisualDrawingContext.cs
- TagMapCollection.cs
- DoWorkEventArgs.cs
- BufferedReceiveElement.cs
- WebCategoryAttribute.cs
- StylusPointProperty.cs
- ComponentCommands.cs
- TextLineResult.cs
- PropertySet.cs
- ProfileElement.cs
- AsymmetricSignatureFormatter.cs
- SQLBinaryStorage.cs
- SqlFactory.cs
- DataPagerFieldItem.cs
- WriteFileContext.cs
- DataGridViewTextBoxEditingControl.cs
- ListSortDescriptionCollection.cs
- InfoCardCryptoHelper.cs
- GroupQuery.cs
- EncodingNLS.cs
- ObjectStorage.cs
- DataException.cs
- ActivityLocationReferenceEnvironment.cs
- XmlSequenceWriter.cs
- TargetParameterCountException.cs
- CmsUtils.cs
- SpinLock.cs
- StringBuilder.cs
- Win32MouseDevice.cs
- XmlEnumAttribute.cs
- versioninfo.cs
- TextEditorThreadLocalStore.cs
- ScriptHandlerFactory.cs
- RepeatBehavior.cs
- FontCollection.cs
- FileSystemInfo.cs
- MailBnfHelper.cs
- DetailsViewInsertEventArgs.cs
- DataGridViewColumnCollectionDialog.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- x509store.cs
- ScaleTransform.cs