Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlUTF8TextReader.cs
- DefaultValueAttribute.cs
- BulletedListDesigner.cs
- DataGridViewIntLinkedList.cs
- SQLDecimalStorage.cs
- ObjectDataSourceFilteringEventArgs.cs
- XmlKeywords.cs
- CodeAccessSecurityEngine.cs
- SqlUtils.cs
- CatalogPartChrome.cs
- HexParser.cs
- PTUtility.cs
- _CacheStreams.cs
- X509CertificateValidator.cs
- StringConcat.cs
- HtmlInputRadioButton.cs
- InputLanguageManager.cs
- AutomationElementCollection.cs
- EventRouteFactory.cs
- BufferBuilder.cs
- Expr.cs
- QueryOutputWriterV1.cs
- ExcCanonicalXml.cs
- wmiprovider.cs
- WebMessageEncodingElement.cs
- QueueSurrogate.cs
- TextParaLineResult.cs
- SymbolUsageManager.cs
- Compiler.cs
- GlyphingCache.cs
- PinnedBufferMemoryStream.cs
- ExpressionEditorAttribute.cs
- Publisher.cs
- SimpleHandlerBuildProvider.cs
- HttpCookiesSection.cs
- XmlDataSourceView.cs
- XmlILConstructAnalyzer.cs
- ToolStripDropDown.cs
- TabControlDesigner.cs
- SmtpMail.cs
- BaseAsyncResult.cs
- FutureFactory.cs
- ParameterCollection.cs
- EdmSchemaAttribute.cs
- AlphabetConverter.cs
- DbConvert.cs
- CredentialCache.cs
- TrustManager.cs
- TCEAdapterGenerator.cs
- Script.cs
- DataSourceCache.cs
- FormViewPageEventArgs.cs
- BitmapEffectGeneralTransform.cs
- _DisconnectOverlappedAsyncResult.cs
- HttpProfileGroupBase.cs
- ActiveXContainer.cs
- ModuleConfigurationInfo.cs
- DefaultValidator.cs
- DataGridViewAdvancedBorderStyle.cs
- StackOverflowException.cs
- ImageClickEventArgs.cs
- WindowsAuthenticationModule.cs
- TraceXPathNavigator.cs
- EllipseGeometry.cs
- CompressEmulationStream.cs
- NameNode.cs
- StretchValidation.cs
- XmlBinaryReader.cs
- ReceiveContent.cs
- Storyboard.cs
- HotCommands.cs
- SecurityKeyIdentifier.cs
- EntityObject.cs
- DesignerDataConnection.cs
- NodeLabelEditEvent.cs
- WindowsAltTab.cs
- PointF.cs
- PathFigureCollectionConverter.cs
- SiteMap.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- XmlExpressionDumper.cs
- GraphicsPath.cs
- SignalGate.cs
- ConstructorNeedsTagAttribute.cs
- DataServiceContext.cs
- SHA512.cs
- ExpandoObject.cs
- HttpClientCertificate.cs
- OleDbStruct.cs
- TextDocumentView.cs
- PageParserFilter.cs
- RawStylusInputCustomData.cs
- EndCreateSecurityTokenRequest.cs
- IdentityReference.cs
- DataGridViewAdvancedBorderStyle.cs
- WinInetCache.cs
- PickBranchDesigner.xaml.cs
- ProviderUtil.cs
- WebMessageFormatHelper.cs
- HtmlElement.cs