Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / Markup / XmlnsCompatibleWithAttribute.cs / 1 / XmlnsCompatibleWithAttribute.cs
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2005
//
// File: XmlnsCompatibleWithAttribute.cs
//
// Contents: Namespace compatiblity support
// Created: 01/19/2005 weibz
//
//-----------------------------------------------------------------------
using System;
using System.ComponentModel;
namespace System.Windows.Markup
{
///
///
/// This attribute allows an assembly to declare that previously published
/// XmlnsDefinitions are subsumed by a new version.
///
/// Such as
///
/// "http://schemas.example.com/2003/mynamespace"
///
/// is changed to
///
/// "http://schemas.example.com/2005/mynamespace"
///
///
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class XmlnsCompatibleWithAttribute: Attribute
{
///
/// Constructor
///
/// old Xml namespce
/// new xml namespace
public XmlnsCompatibleWithAttribute(string oldNamespace, string newNamespace)
{
// Validate Input Arguments
if (oldNamespace == null)
{
throw new ArgumentNullException("oldNamespace");
}
if (newNamespace == null)
{
throw new ArgumentNullException("newNamespace");
}
_oldNamespace = oldNamespace;
_newNamespace = newNamespace;
}
#region public properties
///
/// Old Xml Namespace
///
public string OldNamespace
{
get { return _oldNamespace; }
}
///
/// New Xml Namespace
///
public string NewNamespace
{
get { return _newNamespace; }
}
#endregion public properties
#region Private Fields
private string _oldNamespace;
private string _newNamespace;
#endregion Private Fields
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------------------
//
// Microsoft Windows Client Platform
// Copyright (C) Microsoft Corporation, 2005
//
// File: XmlnsCompatibleWithAttribute.cs
//
// Contents: Namespace compatiblity support
// Created: 01/19/2005 weibz
//
//-----------------------------------------------------------------------
using System;
using System.ComponentModel;
namespace System.Windows.Markup
{
///
///
/// This attribute allows an assembly to declare that previously published
/// XmlnsDefinitions are subsumed by a new version.
///
/// Such as
///
/// "http://schemas.example.com/2003/mynamespace"
///
/// is changed to
///
/// "http://schemas.example.com/2005/mynamespace"
///
///
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
public sealed class XmlnsCompatibleWithAttribute: Attribute
{
///
/// Constructor
///
/// old Xml namespce
/// new xml namespace
public XmlnsCompatibleWithAttribute(string oldNamespace, string newNamespace)
{
// Validate Input Arguments
if (oldNamespace == null)
{
throw new ArgumentNullException("oldNamespace");
}
if (newNamespace == null)
{
throw new ArgumentNullException("newNamespace");
}
_oldNamespace = oldNamespace;
_newNamespace = newNamespace;
}
#region public properties
///
/// Old Xml Namespace
///
public string OldNamespace
{
get { return _oldNamespace; }
}
///
/// New Xml Namespace
///
public string NewNamespace
{
get { return _newNamespace; }
}
#endregion public properties
#region Private Fields
private string _oldNamespace;
private string _newNamespace;
#endregion Private Fields
}
}
// 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
- CompilerGlobalScopeAttribute.cs
- HttpWebResponse.cs
- TranslateTransform.cs
- TraceLog.cs
- LoginCancelEventArgs.cs
- TableLayoutSettingsTypeConverter.cs
- MachineKeySection.cs
- BuildProviderInstallComponent.cs
- Line.cs
- SocketPermission.cs
- StrokeCollectionDefaultValueFactory.cs
- DataControlExtensions.cs
- XAMLParseException.cs
- ProgressBarBrushConverter.cs
- Application.cs
- MutexSecurity.cs
- SqlMethodAttribute.cs
- SqlClientWrapperSmiStreamChars.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- safesecurityhelperavalon.cs
- TextWriter.cs
- LocalizationParserHooks.cs
- TableLayoutSettingsTypeConverter.cs
- SoapDocumentMethodAttribute.cs
- CriticalHandle.cs
- BoundsDrawingContextWalker.cs
- ZoneMembershipCondition.cs
- VersionedStream.cs
- AuthenticationSection.cs
- WebContext.cs
- OutputCacheProfileCollection.cs
- XsdBuilder.cs
- GridLengthConverter.cs
- PrePostDescendentsWalker.cs
- Calendar.cs
- InputLangChangeRequestEvent.cs
- SqlXml.cs
- PageParserFilter.cs
- MemoryStream.cs
- Crc32.cs
- HttpListenerException.cs
- QueryCacheKey.cs
- MimeParameters.cs
- FilterException.cs
- PageContentAsyncResult.cs
- SqlUDTStorage.cs
- TypeForwardedToAttribute.cs
- PersistenceProviderFactory.cs
- ListControlActionList.cs
- TextEditorLists.cs
- HealthMonitoringSection.cs
- DynamicValueConverter.cs
- TableRowGroup.cs
- _SingleItemRequestCache.cs
- PeerNameRecord.cs
- DiagnosticTraceSource.cs
- CancellationTokenRegistration.cs
- MailDefinitionBodyFileNameEditor.cs
- TemplatedWizardStep.cs
- ImportCatalogPart.cs
- WindowsClaimSet.cs
- DbModificationCommandTree.cs
- WriteFileContext.cs
- ResourceDefaultValueAttribute.cs
- SimpleExpression.cs
- SemanticResultKey.cs
- IssuanceLicense.cs
- OutputCacheModule.cs
- ControlAdapter.cs
- SplayTreeNode.cs
- TextTreeFixupNode.cs
- TdsParserStateObject.cs
- MasterPage.cs
- Page.cs
- DelegatedStream.cs
- XmlILTrace.cs
- ResponseStream.cs
- WindowsScrollBar.cs
- BaseTemplateBuildProvider.cs
- DbParameterCollection.cs
- MetadataSource.cs
- ArrayTypeMismatchException.cs
- TransformPatternIdentifiers.cs
- ContextStack.cs
- FreeFormDesigner.cs
- AdobeCFFWrapper.cs
- ParagraphResult.cs
- CharacterMetricsDictionary.cs
- _DomainName.cs
- PeerObject.cs
- FormattedText.cs
- XPathDocumentIterator.cs
- QuotedStringFormatReader.cs
- SspiHelper.cs
- ClientSideQueueItem.cs
- XmlQueryTypeFactory.cs
- DataGridViewAccessibleObject.cs
- _TLSstream.cs
- JumpTask.cs
- CompensateDesigner.cs