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
- CompositeControl.cs
- HttpModuleActionCollection.cs
- RuleProcessor.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- AttachedPropertiesService.cs
- BinHexDecoder.cs
- XPathAncestorIterator.cs
- EntryIndex.cs
- DataRecordObjectView.cs
- BlurBitmapEffect.cs
- SafeHandles.cs
- querybuilder.cs
- ZipIOModeEnforcingStream.cs
- CompositeFontFamily.cs
- CommandValueSerializer.cs
- GlobalItem.cs
- __Error.cs
- HttpCachePolicyBase.cs
- ContentPlaceHolderDesigner.cs
- DefaultAutoFieldGenerator.cs
- ActivityDesignerAccessibleObject.cs
- CopyOnWriteList.cs
- CollectionView.cs
- odbcmetadatafactory.cs
- OleDbRowUpdatingEvent.cs
- XmlText.cs
- IisTraceWebEventProvider.cs
- OdbcConnectionPoolProviderInfo.cs
- CodeExpressionStatement.cs
- FileUtil.cs
- HttpCacheVary.cs
- CLRBindingWorker.cs
- Int32KeyFrameCollection.cs
- DeferrableContentConverter.cs
- EventMap.cs
- ModuleElement.cs
- TypeConverterValueSerializer.cs
- ContentHostHelper.cs
- PackWebRequestFactory.cs
- Quaternion.cs
- TransactionManager.cs
- ComplexBindingPropertiesAttribute.cs
- TextBoxAutoCompleteSourceConverter.cs
- DocumentCollection.cs
- BinaryCommonClasses.cs
- SqlInfoMessageEvent.cs
- MouseWheelEventArgs.cs
- UIntPtr.cs
- RangeBaseAutomationPeer.cs
- InvalidFilterCriteriaException.cs
- Gdiplus.cs
- Bitmap.cs
- DelimitedListTraceListener.cs
- CommonDialog.cs
- DecimalAnimationBase.cs
- VectorCollectionConverter.cs
- SubstitutionList.cs
- OutputCacheModule.cs
- TextBlockAutomationPeer.cs
- DataGridViewControlCollection.cs
- ServiceModelActivity.cs
- XamlSerializationHelper.cs
- XmlnsCache.cs
- Array.cs
- IntPtr.cs
- SourceSwitch.cs
- ConfigXmlWhitespace.cs
- DataObjectFieldAttribute.cs
- ButtonColumn.cs
- AppSettingsReader.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- Freezable.cs
- PatternMatcher.cs
- NameTable.cs
- HtmlControlAdapter.cs
- PenThreadWorker.cs
- FrameworkElement.cs
- __TransparentProxy.cs
- MsmqIntegrationOutputChannel.cs
- IsolatedStorage.cs
- ResourceCodeDomSerializer.cs
- ParallelLoopState.cs
- ClassHandlersStore.cs
- SqlExpander.cs
- CodeTypeMemberCollection.cs
- ProviderMetadata.cs
- TimelineGroup.cs
- TextWriter.cs
- CustomValidator.cs
- SimpleMailWebEventProvider.cs
- SqlBooleanMismatchVisitor.cs
- WorkerProcess.cs
- Button.cs
- itemelement.cs
- PersonalizableTypeEntry.cs
- ObjectIDGenerator.cs
- DefaultIfEmptyQueryOperator.cs
- ReturnEventArgs.cs
- SqlReorderer.cs
- LineServicesRun.cs