Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....] // //----------------------------------------------------------------------- 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
- WindowsScroll.cs
- RootBrowserWindowAutomationPeer.cs
- SqlCachedBuffer.cs
- Label.cs
- columnmapfactory.cs
- SemanticBasicElement.cs
- XmlWrappingReader.cs
- DbConnectionPoolGroup.cs
- StructureChangedEventArgs.cs
- InstalledFontCollection.cs
- SqlDataSourceCommandParser.cs
- connectionpool.cs
- UpdatableGenericsFeature.cs
- BuilderInfo.cs
- XmlDataLoader.cs
- Accessible.cs
- FigureParaClient.cs
- PropertyCondition.cs
- ButtonColumn.cs
- DataRowView.cs
- ListViewDeletedEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- XsdBuilder.cs
- AsymmetricAlgorithm.cs
- TypeBuilder.cs
- SplitContainer.cs
- StrokeCollection2.cs
- UserUseLicenseDictionaryLoader.cs
- SerializationAttributes.cs
- DesignerTransactionCloseEvent.cs
- FieldToken.cs
- ObjectDataSourceDisposingEventArgs.cs
- BorderGapMaskConverter.cs
- RawUIStateInputReport.cs
- ApplicationHost.cs
- DrawTreeNodeEventArgs.cs
- GridViewUpdateEventArgs.cs
- SqlDeflator.cs
- GridViewRowPresenterBase.cs
- SpeechAudioFormatInfo.cs
- SizeAnimationBase.cs
- WindowsStatusBar.cs
- ErrorWebPart.cs
- VolatileEnlistmentState.cs
- Int16Animation.cs
- EmptyImpersonationContext.cs
- DataObjectPastingEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- DecoderNLS.cs
- ErrorTableItemStyle.cs
- MetadataArtifactLoaderResource.cs
- securestring.cs
- AppearanceEditorPart.cs
- TextEditorDragDrop.cs
- ProviderConnectionPointCollection.cs
- Compiler.cs
- HotSpot.cs
- MultiBindingExpression.cs
- DataSourceView.cs
- ConfigurationPropertyAttribute.cs
- BuildProviderAppliesToAttribute.cs
- ExclusiveHandleList.cs
- DataRelation.cs
- SingleObjectCollection.cs
- ExpressionBuilderContext.cs
- DefaultSection.cs
- Ref.cs
- StringReader.cs
- CheckBox.cs
- PasswordTextNavigator.cs
- StorageScalarPropertyMapping.cs
- Tablet.cs
- OracleBFile.cs
- StatusBarAutomationPeer.cs
- ColorContextHelper.cs
- NameSpaceExtractor.cs
- Transform3D.cs
- XmlQueryOutput.cs
- FrameworkRichTextComposition.cs
- Camera.cs
- GradientBrush.cs
- DrawingContextWalker.cs
- PropertyDescriptor.cs
- FixedStringLookup.cs
- XamlInt32CollectionSerializer.cs
- Label.cs
- PeerHelpers.cs
- HttpHandlerAction.cs
- Label.cs
- WebPartDescriptionCollection.cs
- HMACSHA256.cs
- ContentType.cs
- RelatedImageListAttribute.cs
- DataDesignUtil.cs
- DrawingDrawingContext.cs
- ErrorRuntimeConfig.cs
- CriticalHandle.cs
- XamlTypeMapper.cs
- CountAggregationOperator.cs
- LinqDataSourceDeleteEventArgs.cs