Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ProxyAttribute.cs
- ParserStreamGeometryContext.cs
- InstanceView.cs
- Form.cs
- TextPenaltyModule.cs
- SpeechRecognitionEngine.cs
- fixedPageContentExtractor.cs
- MethodRental.cs
- Attributes.cs
- BitmapPalette.cs
- DataBoundControlHelper.cs
- InfoCardBaseException.cs
- _FtpControlStream.cs
- AndAlso.cs
- LayoutExceptionEventArgs.cs
- SqlProfileProvider.cs
- SymmetricAlgorithm.cs
- RNGCryptoServiceProvider.cs
- ApplicationBuildProvider.cs
- DBCommand.cs
- ApplicationSecurityManager.cs
- XmlILModule.cs
- SqlParameter.cs
- PathHelper.cs
- RangeContentEnumerator.cs
- Themes.cs
- TransactionManagerProxy.cs
- StaticTextPointer.cs
- WebPartZone.cs
- CertificateReferenceElement.cs
- CodeDOMProvider.cs
- ChooseAction.cs
- FederatedMessageSecurityOverHttpElement.cs
- RSAPKCS1SignatureDeformatter.cs
- X509CertificateCollection.cs
- StateMachineWorkflowInstance.cs
- UnitySerializationHolder.cs
- SchemaElementLookUpTableEnumerator.cs
- AddressAlreadyInUseException.cs
- SignatureDescription.cs
- PropertyManager.cs
- ModifiableIteratorCollection.cs
- GeneratedCodeAttribute.cs
- TemplateComponentConnector.cs
- DataTrigger.cs
- AuthenticationException.cs
- Stack.cs
- IconBitmapDecoder.cs
- RegistryExceptionHelper.cs
- xsdvalidator.cs
- RMEnrollmentPage1.cs
- ProxyWebPartConnectionCollection.cs
- Transform.cs
- ServiceActivationException.cs
- XmlDomTextWriter.cs
- WindowsGraphics2.cs
- CounterSample.cs
- QilTargetType.cs
- XsltContext.cs
- WebServicesSection.cs
- ButtonBase.cs
- NonVisualControlAttribute.cs
- ResourceWriter.cs
- InfoCardTraceRecord.cs
- GlyphRun.cs
- SqlWorkflowInstanceStore.cs
- ContractMethodParameterInfo.cs
- PointAnimationUsingPath.cs
- XmlNamespaceMapping.cs
- PassportAuthenticationModule.cs
- ipaddressinformationcollection.cs
- DocumentReference.cs
- View.cs
- SiteMembershipCondition.cs
- NativeCompoundFileAPIs.cs
- TypeDependencyAttribute.cs
- BuildProviderUtils.cs
- ContainerParagraph.cs
- ControlCollection.cs
- CodeCompileUnit.cs
- PropertyEmitterBase.cs
- CodeExporter.cs
- UpdateProgress.cs
- ContextDataSourceView.cs
- ChangeTracker.cs
- FunctionCommandText.cs
- ProjectionCamera.cs
- SimpleWorkerRequest.cs
- UndirectedGraph.cs
- AuthorizationRuleCollection.cs
- Convert.cs
- DnsPermission.cs
- DataIdProcessor.cs
- PackageDigitalSignature.cs
- ContentElementAutomationPeer.cs
- SHA512Managed.cs
- CodeMemberField.cs
- TransactionFlowAttribute.cs
- HttpDigestClientElement.cs
- NativeRightsManagementAPIsStructures.cs