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
- TypedElement.cs
- Triangle.cs
- CancellationTokenRegistration.cs
- FontDialog.cs
- ToolStripControlHost.cs
- SectionUpdates.cs
- HttpCacheVaryByContentEncodings.cs
- LoadGrammarCompletedEventArgs.cs
- OutputScope.cs
- MetadataArtifactLoaderComposite.cs
- LifetimeServices.cs
- RoutedUICommand.cs
- WsdlBuildProvider.cs
- CodeAttributeArgumentCollection.cs
- ResourceProviderFactory.cs
- DataGridViewColumnEventArgs.cs
- BorderGapMaskConverter.cs
- HttpListener.cs
- WCFModelStrings.Designer.cs
- WebPartEditorApplyVerb.cs
- XmlWhitespace.cs
- Int32Rect.cs
- TrailingSpaceComparer.cs
- CustomAttribute.cs
- GlyphElement.cs
- ActivityBindForm.cs
- SqlFileStream.cs
- FormParameter.cs
- SessionIDManager.cs
- XmlSchemas.cs
- MultilineStringEditor.cs
- DecimalConstantAttribute.cs
- WindowsImpersonationContext.cs
- DBPropSet.cs
- SiteMapNodeItemEventArgs.cs
- FigureParagraph.cs
- Timer.cs
- ChooseAction.cs
- MeasureItemEvent.cs
- NodeLabelEditEvent.cs
- DocumentViewerBaseAutomationPeer.cs
- SspiNegotiationTokenAuthenticatorState.cs
- Rights.cs
- DefaultTextStore.cs
- Transform3DGroup.cs
- BrowserDefinition.cs
- CachedFontFace.cs
- MailAddress.cs
- regiisutil.cs
- PathFigureCollectionValueSerializer.cs
- Label.cs
- unsafenativemethodstextservices.cs
- MouseEvent.cs
- GenericPrincipal.cs
- ComponentChangingEvent.cs
- TogglePattern.cs
- InstancePersistence.cs
- PriorityBinding.cs
- WebPartMinimizeVerb.cs
- ContractType.cs
- ScrollPatternIdentifiers.cs
- ListSourceHelper.cs
- DiffuseMaterial.cs
- CardSpacePolicyElement.cs
- BaseProcessor.cs
- Point.cs
- Types.cs
- DBDataPermission.cs
- RSAPKCS1SignatureFormatter.cs
- StickyNote.cs
- XmlSchemaFacet.cs
- RequestResizeEvent.cs
- SqlDataSourceCache.cs
- FeatureSupport.cs
- NativeWindow.cs
- ByteConverter.cs
- UserUseLicenseDictionaryLoader.cs
- FixedDocument.cs
- GenericXmlSecurityTokenAuthenticator.cs
- ComponentCommands.cs
- ThreadPool.cs
- SessionEndingCancelEventArgs.cs
- TypedColumnHandler.cs
- PrePostDescendentsWalker.cs
- NameValueConfigurationElement.cs
- BufferedGraphicsContext.cs
- basevalidator.cs
- ByteStreamMessageEncodingElement.cs
- FixedTextView.cs
- KeyboardEventArgs.cs
- HttpCapabilitiesBase.cs
- XslTransform.cs
- VisualTarget.cs
- SafeTimerHandle.cs
- BamlResourceSerializer.cs
- BooleanAnimationUsingKeyFrames.cs
- SerializationObjectManager.cs
- WebPartActionVerb.cs
- Shape.cs
- TextRunTypographyProperties.cs