Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- LongValidatorAttribute.cs
- SamlSubjectStatement.cs
- InvalidOleVariantTypeException.cs
- CodePageEncoding.cs
- HttpProtocolReflector.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- Rfc2898DeriveBytes.cs
- ProcessManager.cs
- XmlSchemaDocumentation.cs
- OleDbFactory.cs
- FormatException.cs
- MobileTemplatedControlDesigner.cs
- SystemUdpStatistics.cs
- HostSecurityManager.cs
- LoadedEvent.cs
- CodeComment.cs
- UncommonField.cs
- DocumentCollection.cs
- LiteralControl.cs
- ProgressPage.cs
- CryptoHandle.cs
- LinqDataSourceValidationException.cs
- OperationGenerator.cs
- IArgumentProvider.cs
- DynamicPropertyHolder.cs
- ReadOnlyDictionary.cs
- securitycriticaldataClass.cs
- Inflater.cs
- TransformConverter.cs
- ToolStripDropDownClosedEventArgs.cs
- EmptyWorkItem.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SerializerDescriptor.cs
- GridView.cs
- StreamGeometryContext.cs
- HttpResponseInternalWrapper.cs
- ConstructorArgumentAttribute.cs
- XPathNavigatorKeyComparer.cs
- ChangeNode.cs
- BrushProxy.cs
- SoapHeaderAttribute.cs
- HighlightOverlayGlyph.cs
- RotateTransform.cs
- SystemResourceHost.cs
- RegexCompiler.cs
- Int64Converter.cs
- WizardSideBarListControlItemEventArgs.cs
- _RequestLifetimeSetter.cs
- GeneralTransform3DCollection.cs
- DateTimeFormatInfo.cs
- PrivilegeNotHeldException.cs
- Collection.cs
- AssemblyInfo.cs
- input.cs
- XmlName.cs
- NativeMethods.cs
- SetIterators.cs
- VersionPair.cs
- LinqMaximalSubtreeNominator.cs
- DataListItemCollection.cs
- Animatable.cs
- PerformanceCounterManager.cs
- FusionWrap.cs
- SQLDouble.cs
- Evidence.cs
- TextTreeUndoUnit.cs
- XslCompiledTransform.cs
- ConsoleCancelEventArgs.cs
- StateItem.cs
- Schema.cs
- FormDocumentDesigner.cs
- RoutedUICommand.cs
- WebPartMenuStyle.cs
- ClockController.cs
- LineMetrics.cs
- DataGridPageChangedEventArgs.cs
- _StreamFramer.cs
- EditorPartChrome.cs
- SocketAddress.cs
- BaseValidator.cs
- DataGridViewCellValidatingEventArgs.cs
- DurableOperationAttribute.cs
- MergeFilterQuery.cs
- SoapEnumAttribute.cs
- MsmqProcessProtocolHandler.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Switch.cs
- NamespaceCollection.cs
- CommonBehaviorsSection.cs
- ApplicationGesture.cs
- WebPartAuthorizationEventArgs.cs
- GZipUtils.cs
- SettingsPropertyCollection.cs
- PolicyChain.cs
- MsmqIntegrationMessagePool.cs
- Sentence.cs
- IntegerFacetDescriptionElement.cs
- WeakReadOnlyCollection.cs
- StaticContext.cs
- Transform.cs