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
- GridItemPattern.cs
- SqlTypesSchemaImporter.cs
- HttpRuntime.cs
- XPathItem.cs
- BlurBitmapEffect.cs
- QilReplaceVisitor.cs
- Application.cs
- SliderAutomationPeer.cs
- SortedSetDebugView.cs
- CodeGenHelper.cs
- ProfileEventArgs.cs
- StorageEndPropertyMapping.cs
- ExtenderControl.cs
- DbParameterHelper.cs
- DataServiceQueryException.cs
- AppSettings.cs
- AsmxEndpointPickerExtension.cs
- CollectionConverter.cs
- EntityDataSourceChangingEventArgs.cs
- TextPointer.cs
- BaseCodePageEncoding.cs
- QilChoice.cs
- CacheMode.cs
- MemberMaps.cs
- DataGridViewDataErrorEventArgs.cs
- ProcessModuleCollection.cs
- SelectedPathEditor.cs
- DataGridViewCheckBoxCell.cs
- BuildProvider.cs
- SoapIgnoreAttribute.cs
- GroupBoxAutomationPeer.cs
- MetadataItemSerializer.cs
- FilterQuery.cs
- Tokenizer.cs
- Geometry.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- ButtonColumn.cs
- DashStyle.cs
- ConfigurationSectionGroup.cs
- Guid.cs
- PaintEvent.cs
- GetPageCompletedEventArgs.cs
- XmlNamespaceManager.cs
- XmlWellformedWriter.cs
- QilTypeChecker.cs
- UrlMappingCollection.cs
- RootProfilePropertySettingsCollection.cs
- RequestQueryProcessor.cs
- WizardStepBase.cs
- UrlMappingsModule.cs
- RequestQueue.cs
- AnimationClockResource.cs
- JapaneseCalendar.cs
- OleDbPropertySetGuid.cs
- PerformanceCountersElement.cs
- ThreadAttributes.cs
- PhysicalAddress.cs
- JapaneseCalendar.cs
- AlphaSortedEnumConverter.cs
- LocalBuilder.cs
- LoadedOrUnloadedOperation.cs
- ReferencedCollectionType.cs
- SortedList.cs
- PointValueSerializer.cs
- ResXFileRef.cs
- SafeFileHandle.cs
- DecoderFallbackWithFailureFlag.cs
- BlurEffect.cs
- Soap12ProtocolImporter.cs
- XmlSchemaComplexContent.cs
- WebPartConnectionsConnectVerb.cs
- TextDecorationCollection.cs
- TargetConverter.cs
- HtmlEmptyTagControlBuilder.cs
- XmlDigitalSignatureProcessor.cs
- SmtpCommands.cs
- DataListItem.cs
- VirtualPath.cs
- odbcmetadatafactory.cs
- IImplicitResourceProvider.cs
- EnumConverter.cs
- EntityContainerEntitySet.cs
- PrintPreviewDialog.cs
- AuthorizationRule.cs
- ProfileModule.cs
- TcpConnectionPoolSettings.cs
- BamlRecords.cs
- DataBoundControlAdapter.cs
- TraceHelpers.cs
- Int32CAMarshaler.cs
- StorageScalarPropertyMapping.cs
- DataKey.cs
- CompModHelpers.cs
- Codec.cs
- WsdlInspector.cs
- OdbcException.cs
- ConfigXmlDocument.cs
- TextBoxLine.cs
- DescendantOverDescendantQuery.cs
- WorkflowDurableInstance.cs