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
- ByteArrayHelperWithString.cs
- CrossContextChannel.cs
- DiscoveryUtility.cs
- ClientSideQueueItem.cs
- LockCookie.cs
- ConstructorArgumentAttribute.cs
- PointKeyFrameCollection.cs
- CodeTypeMember.cs
- DetailsViewUpdatedEventArgs.cs
- EventTrigger.cs
- HtmlTextArea.cs
- FileSystemEventArgs.cs
- PtsPage.cs
- WeakReferenceEnumerator.cs
- UserControlCodeDomTreeGenerator.cs
- BitmapEffectDrawing.cs
- DesignerActionUI.cs
- BitConverter.cs
- ImageAnimator.cs
- MulticastDelegate.cs
- FixedPage.cs
- GlyphRunDrawing.cs
- ListDictionary.cs
- QilPatternVisitor.cs
- RegisteredScript.cs
- MobileControlDesigner.cs
- VideoDrawing.cs
- SourceFileBuildProvider.cs
- GifBitmapEncoder.cs
- ImageFormat.cs
- ReaderWriterLockWrapper.cs
- VisualStateGroup.cs
- RegexRunner.cs
- CommunicationObjectAbortedException.cs
- ServiceReflector.cs
- CssStyleCollection.cs
- ObjectListGeneralPage.cs
- RewritingProcessor.cs
- BidOverLoads.cs
- IntSecurity.cs
- RichTextBox.cs
- EllipseGeometry.cs
- Page.cs
- UrlPropertyAttribute.cs
- ZoneIdentityPermission.cs
- HandlerWithFactory.cs
- FileNotFoundException.cs
- ZipPackagePart.cs
- Directory.cs
- RemoteCryptoRsaServiceProvider.cs
- NotFiniteNumberException.cs
- DbDataReader.cs
- FlowDocumentPage.cs
- CanonicalFontFamilyReference.cs
- DictionaryContent.cs
- StringFunctions.cs
- NullRuntimeConfig.cs
- TypeTypeConverter.cs
- bindurihelper.cs
- ImageUrlEditor.cs
- EllipticalNodeOperations.cs
- NameValueConfigurationCollection.cs
- AppSecurityManager.cs
- ValidationError.cs
- DataError.cs
- _KerberosClient.cs
- TagNameToTypeMapper.cs
- ThousandthOfEmRealDoubles.cs
- PathSegmentCollection.cs
- EdmTypeAttribute.cs
- FlowDocumentPage.cs
- CompositeCollectionView.cs
- FixedDocumentPaginator.cs
- BamlResourceSerializer.cs
- FrameworkElement.cs
- LinkButton.cs
- DbProviderManifest.cs
- ViewBox.cs
- AttributeData.cs
- DrawingServices.cs
- ToggleButtonAutomationPeer.cs
- KeyGestureValueSerializer.cs
- Rectangle.cs
- RawStylusActions.cs
- SmiEventSink.cs
- DetailsViewUpdatedEventArgs.cs
- HttpRequestCacheValidator.cs
- DataReceivedEventArgs.cs
- XmlTextWriter.cs
- ConfigXmlElement.cs
- AnnotationStore.cs
- CodeAccessSecurityEngine.cs
- SystemWebExtensionsSectionGroup.cs
- UdpAnnouncementEndpoint.cs
- IsolatedStorage.cs
- CompareInfo.cs
- GlobalItem.cs
- XsltConvert.cs
- ChangeTracker.cs
- VirtualDirectoryMappingCollection.cs