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
- CollectionView.cs
- ListViewEditEventArgs.cs
- ThreadStateException.cs
- MachineKeySection.cs
- DashStyle.cs
- TrustLevel.cs
- ChannelManager.cs
- CopyNamespacesAction.cs
- CharacterMetrics.cs
- XamlNamespaceHelper.cs
- ServiceObjectContainer.cs
- TextTreeNode.cs
- TextRangeEditLists.cs
- formatter.cs
- TrimSurroundingWhitespaceAttribute.cs
- WebMessageEncoderFactory.cs
- FocusWithinProperty.cs
- RecognizedAudio.cs
- WsdlBuildProvider.cs
- _IPv6Address.cs
- ParserOptions.cs
- BamlReader.cs
- ConfigUtil.cs
- XmlSerializerAssemblyAttribute.cs
- CalculatedColumn.cs
- InkCollectionBehavior.cs
- NullExtension.cs
- ReflectTypeDescriptionProvider.cs
- FigureParagraph.cs
- TypeUsage.cs
- TimeoutException.cs
- OracleBFile.cs
- Qualifier.cs
- ConnectionPoint.cs
- AutomationPropertyInfo.cs
- SharedStream.cs
- BitStream.cs
- ContextStaticAttribute.cs
- XamlInt32CollectionSerializer.cs
- StructuredTypeInfo.cs
- ClrPerspective.cs
- HttpApplication.cs
- LinkArea.cs
- IisTraceListener.cs
- WebPartConnectionsCancelVerb.cs
- Encoding.cs
- RawTextInputReport.cs
- ZipIOCentralDirectoryBlock.cs
- ZipFileInfo.cs
- IxmlLineInfo.cs
- CommandDevice.cs
- ThaiBuddhistCalendar.cs
- arabicshape.cs
- VoiceChangeEventArgs.cs
- SessionIDManager.cs
- DoubleAnimationBase.cs
- BitmapEffectvisualstate.cs
- Propagator.Evaluator.cs
- OrthographicCamera.cs
- MembershipValidatePasswordEventArgs.cs
- TextBoxRenderer.cs
- CodeValidator.cs
- SectionXmlInfo.cs
- PartitionResolver.cs
- HotSpot.cs
- AnonymousIdentificationModule.cs
- BaseUriHelper.cs
- WorkflowTransactionService.cs
- DiscreteKeyFrames.cs
- ObjectDataSourceEventArgs.cs
- AssertSection.cs
- TypeExtensionSerializer.cs
- Queue.cs
- CapabilitiesAssignment.cs
- HotSpotCollectionEditor.cs
- EntitySetDataBindingList.cs
- RecipientInfo.cs
- unitconverter.cs
- RoleService.cs
- ContentType.cs
- MsmqTransportBindingElement.cs
- DashStyle.cs
- CommonObjectSecurity.cs
- mactripleDES.cs
- CompiledIdentityConstraint.cs
- DataSpaceManager.cs
- GridEntryCollection.cs
- DbUpdateCommandTree.cs
- TreeNodeMouseHoverEvent.cs
- TextSpan.cs
- StyleSheetDesigner.cs
- ValidationPropertyAttribute.cs
- LinqDataSourceDisposeEventArgs.cs
- CustomAttributeFormatException.cs
- SystemBrushes.cs
- ConnectionManagementElement.cs
- DesignerPerfEventProvider.cs
- WebConvert.cs
- EventHandlersStore.cs
- RealProxy.cs