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
- ConfigXmlElement.cs
- InlineObject.cs
- LinearGradientBrush.cs
- StandardToolWindows.cs
- ReferenceSchema.cs
- SoapCodeExporter.cs
- StyleModeStack.cs
- EmptyWithCancelationCheckWorkItem.cs
- WsdlBuildProvider.cs
- ReferencedType.cs
- CodeTypeReferenceExpression.cs
- XmlSchemaComplexContentExtension.cs
- GACMembershipCondition.cs
- EdmItemError.cs
- IgnoreFlushAndCloseStream.cs
- COM2Properties.cs
- CookielessHelper.cs
- UiaCoreProviderApi.cs
- ScriptingRoleServiceSection.cs
- webeventbuffer.cs
- RefType.cs
- TextParaClient.cs
- GetPageNumberCompletedEventArgs.cs
- StyleCollectionEditor.cs
- TextInfo.cs
- XmlElementAttribute.cs
- GetImportFileNameRequest.cs
- login.cs
- MessageAction.cs
- TransformFinalBlockRequest.cs
- BStrWrapper.cs
- BamlMapTable.cs
- DPCustomTypeDescriptor.cs
- ClickablePoint.cs
- DependencyPropertyValueSerializer.cs
- ClientBuildManagerCallback.cs
- IsolatedStorageFilePermission.cs
- VectorKeyFrameCollection.cs
- SoapMessage.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- DataGridViewRowCollection.cs
- GenericsNotImplementedException.cs
- IPPacketInformation.cs
- XmlLoader.cs
- Screen.cs
- NCryptSafeHandles.cs
- RegexParser.cs
- CachedFontFamily.cs
- ViewStateException.cs
- MILUtilities.cs
- ApplicationInfo.cs
- PropertyPushdownHelper.cs
- validationstate.cs
- StringFunctions.cs
- ManagedFilter.cs
- OdbcConnectionPoolProviderInfo.cs
- Baml2006SchemaContext.cs
- ApplicationSecurityManager.cs
- FileLevelControlBuilderAttribute.cs
- MsmqIntegrationOutputChannel.cs
- RelatedPropertyManager.cs
- ClientSettings.cs
- ObjectKeyFrameCollection.cs
- SchemaCollectionPreprocessor.cs
- securitycriticaldataClass.cs
- EntityContainerAssociationSetEnd.cs
- SQLBinary.cs
- AssemblyAttributes.cs
- WindowsTab.cs
- InputLanguageCollection.cs
- LeafCellTreeNode.cs
- LogSwitch.cs
- loginstatus.cs
- RouteParametersHelper.cs
- PermissionSet.cs
- SecurityAppliedMessage.cs
- GridProviderWrapper.cs
- CommandField.cs
- StyleSheetComponentEditor.cs
- ToolStripHighContrastRenderer.cs
- CompilationLock.cs
- MSHTMLHost.cs
- BitmapEncoder.cs
- TemplateXamlParser.cs
- TimeStampChecker.cs
- MediaTimeline.cs
- ScrollData.cs
- LogEntrySerializationException.cs
- StorageConditionPropertyMapping.cs
- RegularExpressionValidator.cs
- DocumentViewerHelper.cs
- TransactionTraceIdentifier.cs
- PrintDialogException.cs
- FeatureAttribute.cs
- wgx_sdk_version.cs
- Journaling.cs
- DataGridViewCell.cs
- HandlerFactoryWrapper.cs
- NativeMethods.cs
- TypeNameConverter.cs