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
- GridViewUpdateEventArgs.cs
- AdapterUtil.cs
- TagPrefixCollection.cs
- DbModificationCommandTree.cs
- AssemblyBuilder.cs
- TypeBrowser.xaml.cs
- AttributeUsageAttribute.cs
- ColorConvertedBitmapExtension.cs
- Assert.cs
- InputMethod.cs
- LeafCellTreeNode.cs
- DockAndAnchorLayout.cs
- NativeWindow.cs
- LinkArea.cs
- TextViewElement.cs
- TargetControlTypeCache.cs
- ScrollEvent.cs
- Evidence.cs
- SqlDataSource.cs
- SqlFunctionAttribute.cs
- Win32.cs
- OpenTypeLayout.cs
- UrlMappingsSection.cs
- QilGenerator.cs
- SqlDataSourceCommandEventArgs.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ImageMap.cs
- ReferenceEqualityComparer.cs
- ToolStripPanelCell.cs
- BinaryObjectWriter.cs
- ReliabilityContractAttribute.cs
- Trace.cs
- HashCodeCombiner.cs
- SmiRequestExecutor.cs
- IPAddressCollection.cs
- CacheAxisQuery.cs
- OuterGlowBitmapEffect.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- DrawTreeNodeEventArgs.cs
- TypedElement.cs
- Style.cs
- XPathDocumentNavigator.cs
- InvalidPrinterException.cs
- DispatcherExceptionFilterEventArgs.cs
- CheckBoxList.cs
- DataGridAddNewRow.cs
- BrowserDefinition.cs
- SafeHandles.cs
- Object.cs
- ConfigXmlElement.cs
- HttpCacheVary.cs
- IxmlLineInfo.cs
- AsymmetricKeyExchangeDeformatter.cs
- TypeConverterHelper.cs
- CodeAttributeArgumentCollection.cs
- TypeValidationEventArgs.cs
- Enumerable.cs
- SettingsProperty.cs
- Helper.cs
- PageHandlerFactory.cs
- EncodingInfo.cs
- WebHeaderCollection.cs
- PriorityBindingExpression.cs
- ControlIdConverter.cs
- StreamGeometryContext.cs
- HierarchicalDataTemplate.cs
- DateTimeFormatInfo.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- DescriptionAttribute.cs
- ResourceContainer.cs
- RegistrySecurity.cs
- ManagementInstaller.cs
- TitleStyle.cs
- NonParentingControl.cs
- DomainConstraint.cs
- ElapsedEventArgs.cs
- DefaultAssemblyResolver.cs
- ClientConvert.cs
- CqlWriter.cs
- TitleStyle.cs
- ElementProxy.cs
- ApplicationFileParser.cs
- AddressingProperty.cs
- DataSet.cs
- ExeContext.cs
- FusionWrap.cs
- WebConfigurationHost.cs
- IntSecurity.cs
- EmptyImpersonationContext.cs
- WebResponse.cs
- ToolTipService.cs
- InstalledVoice.cs
- SystemIPGlobalProperties.cs
- UnmanagedMemoryStream.cs
- MemberHolder.cs
- WebInvokeAttribute.cs
- TextEndOfLine.cs
- PaintEvent.cs
- Collection.cs
- SqlUdtInfo.cs