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
- SafeUserTokenHandle.cs
- ConfigurationFileMap.cs
- SQLMoneyStorage.cs
- SrgsElementFactory.cs
- BehaviorEditorPart.cs
- ContainerParagraph.cs
- IconBitmapDecoder.cs
- PriorityBinding.cs
- MergablePropertyAttribute.cs
- DefaultAssemblyResolver.cs
- OdbcErrorCollection.cs
- HotSpot.cs
- DnsPermission.cs
- SqlException.cs
- XamlFxTrace.cs
- OracleDataAdapter.cs
- TraceHandlerErrorFormatter.cs
- ListViewSortEventArgs.cs
- AbsoluteQuery.cs
- WebPartManager.cs
- KeyEventArgs.cs
- ReadOnlyCollectionBase.cs
- RenderingEventArgs.cs
- NavigationWindow.cs
- DataSourceCacheDurationConverter.cs
- ThreadStaticAttribute.cs
- TextControl.cs
- XomlSerializationHelpers.cs
- DataMemberFieldEditor.cs
- PropertyChangedEventArgs.cs
- SerializationObjectManager.cs
- KeyPressEvent.cs
- TreeNodeClickEventArgs.cs
- FrameworkContentElement.cs
- FontFamily.cs
- XpsResourcePolicy.cs
- PostBackTrigger.cs
- EditorAttribute.cs
- DataGridViewToolTip.cs
- SplineQuaternionKeyFrame.cs
- ResourceReader.cs
- DataViewSettingCollection.cs
- ModelTreeEnumerator.cs
- ResourcesBuildProvider.cs
- EnumerableRowCollectionExtensions.cs
- DetailsViewCommandEventArgs.cs
- SafeRegistryHandle.cs
- ClientRoleProvider.cs
- PictureBox.cs
- ObjectDataSourceMethodEventArgs.cs
- DivideByZeroException.cs
- DBSchemaTable.cs
- DelegateSerializationHolder.cs
- SimpleApplicationHost.cs
- _RequestCacheProtocol.cs
- ExternalException.cs
- WizardForm.cs
- CompilerError.cs
- MdImport.cs
- ExpressionBuilderContext.cs
- TextWriterTraceListener.cs
- HtmlHistory.cs
- RightsController.cs
- MatchAttribute.cs
- SupportingTokenChannel.cs
- ProjectionPlanCompiler.cs
- NameValuePermission.cs
- IPipelineRuntime.cs
- MultipleViewPattern.cs
- DataGridViewControlCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- TagElement.cs
- Frame.cs
- Vars.cs
- PopupRootAutomationPeer.cs
- CodePageEncoding.cs
- ServiceMetadataPublishingElement.cs
- GCHandleCookieTable.cs
- BindUriHelper.cs
- CodeEntryPointMethod.cs
- TickBar.cs
- QuadraticBezierSegment.cs
- LambdaCompiler.Expressions.cs
- PairComparer.cs
- DictionaryEntry.cs
- XmlEntityReference.cs
- AuthenticationConfig.cs
- XsdBuilder.cs
- SHA512Managed.cs
- TreeBuilder.cs
- SelectQueryOperator.cs
- FilterEventArgs.cs
- MetadataSerializer.cs
- DetailsViewPageEventArgs.cs
- SqlGenerator.cs
- XmlSchemaCompilationSettings.cs
- BinaryNode.cs
- ServerIdentity.cs
- DotAtomReader.cs
- SqlUtils.cs