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
- X509CertificateCollection.cs
- oledbmetadatacolumnnames.cs
- SettingsPropertyValueCollection.cs
- ChannelTracker.cs
- JavaScriptObjectDeserializer.cs
- CodeAssignStatement.cs
- PtsHelper.cs
- RolePrincipal.cs
- XmlSchemaElement.cs
- updatecommandorderer.cs
- TypeKeyValue.cs
- HtmlTextArea.cs
- SerializationUtilities.cs
- UnsafeNativeMethods.cs
- KerberosSecurityTokenAuthenticator.cs
- PrintController.cs
- DataGridViewBand.cs
- GuidConverter.cs
- HttpPostProtocolReflector.cs
- ProjectionCamera.cs
- AssemblyBuilder.cs
- Ray3DHitTestResult.cs
- Help.cs
- WebResourceUtil.cs
- InvalidCastException.cs
- StatusCommandUI.cs
- DbConnectionPoolCounters.cs
- MutexSecurity.cs
- WebPartAuthorizationEventArgs.cs
- StatusBarDrawItemEvent.cs
- BrowserCapabilitiesCodeGenerator.cs
- PermissionSetEnumerator.cs
- InputMethodStateChangeEventArgs.cs
- Style.cs
- TimersDescriptionAttribute.cs
- TraceData.cs
- IListConverters.cs
- Point4D.cs
- CharAnimationUsingKeyFrames.cs
- SemanticResultKey.cs
- Image.cs
- HostedNamedPipeTransportManager.cs
- VerifyHashRequest.cs
- KeyGesture.cs
- ReadOnlyMetadataCollection.cs
- CellCreator.cs
- SynchronizationContext.cs
- IndexOutOfRangeException.cs
- BindValidator.cs
- WasHttpModulesInstallComponent.cs
- EntityPropertyMappingAttribute.cs
- DynamicResourceExtension.cs
- SqlDataSourceTableQuery.cs
- StorageEndPropertyMapping.cs
- Utils.cs
- OutputCacheProfile.cs
- UIElement3D.cs
- HandoffBehavior.cs
- RSAProtectedConfigurationProvider.cs
- FocusChangedEventArgs.cs
- DockingAttribute.cs
- XmlSchemaAny.cs
- UInt64.cs
- GridViewColumnHeader.cs
- SerializableTypeCodeDomSerializer.cs
- SqlLiftIndependentRowExpressions.cs
- RuntimeIdentifierPropertyAttribute.cs
- CookieProtection.cs
- PlaceHolder.cs
- DocumentXPathNavigator.cs
- RectAnimationUsingKeyFrames.cs
- UserControlDocumentDesigner.cs
- VariantWrapper.cs
- ButtonStandardAdapter.cs
- WindowsScroll.cs
- TypedDataSetSchemaImporterExtension.cs
- SizeIndependentAnimationStorage.cs
- AlignmentYValidation.cs
- AuthStoreRoleProvider.cs
- AssemblyNameProxy.cs
- PolyQuadraticBezierSegment.cs
- PropertyInformationCollection.cs
- HttpResponse.cs
- WebPartDeleteVerb.cs
- FlowDecision.cs
- PresentationSource.cs
- TemplateAction.cs
- ImagingCache.cs
- SymbolPair.cs
- WmlSelectionListAdapter.cs
- ValidatedControlConverter.cs
- MemoryMappedViewStream.cs
- JsonSerializer.cs
- Win32.cs
- Baml2006ReaderFrame.cs
- AssemblyFilter.cs
- EntityTypeEmitter.cs
- TrackingMemoryStream.cs
- ParseNumbers.cs
- entityreference_tresulttype.cs