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
- WebContext.cs
- XmlSchemaParticle.cs
- AuthenticationSection.cs
- RoleManagerSection.cs
- WorkflowRequestContext.cs
- Compiler.cs
- QilIterator.cs
- FontFamily.cs
- TextPointer.cs
- DataContext.cs
- GeneralTransform2DTo3DTo2D.cs
- SignedPkcs7.cs
- XmlSchemaObjectCollection.cs
- ServicesExceptionNotHandledEventArgs.cs
- UnauthorizedAccessException.cs
- XmlDocumentSerializer.cs
- SizeConverter.cs
- Sentence.cs
- FontCollection.cs
- HMACSHA384.cs
- SizeLimitedCache.cs
- RequestQueue.cs
- EventLogPermissionAttribute.cs
- CodeExpressionCollection.cs
- BamlRecords.cs
- SqlConnectionPoolProviderInfo.cs
- ListControlActionList.cs
- Thickness.cs
- SQLStringStorage.cs
- DbModificationClause.cs
- HttpProcessUtility.cs
- BamlStream.cs
- UnsafeCollabNativeMethods.cs
- TextEditorThreadLocalStore.cs
- ReaderOutput.cs
- OutputBuffer.cs
- UnsafeNativeMethods.cs
- ValueSerializerAttribute.cs
- PublisherMembershipCondition.cs
- RenderData.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SimpleLine.cs
- QilPatternVisitor.cs
- ResourceContainer.cs
- SEHException.cs
- PackageRelationshipSelector.cs
- DocumentSchemaValidator.cs
- WebPartAddingEventArgs.cs
- HttpCapabilitiesSectionHandler.cs
- MD5CryptoServiceProvider.cs
- IPHostEntry.cs
- XmlDocumentFragment.cs
- ContentType.cs
- EntityDescriptor.cs
- OleDbConnectionInternal.cs
- ColorInterpolationModeValidation.cs
- DataPagerFieldCommandEventArgs.cs
- DebugView.cs
- RSAOAEPKeyExchangeFormatter.cs
- EncoderReplacementFallback.cs
- DoubleIndependentAnimationStorage.cs
- DirectionalLight.cs
- TempFiles.cs
- XomlCompilerHelpers.cs
- Workspace.cs
- PackageRelationshipSelector.cs
- StreamAsIStream.cs
- IDictionary.cs
- webbrowsersite.cs
- IncrementalCompileAnalyzer.cs
- IpcChannelHelper.cs
- InstancePersistenceContext.cs
- HttpConfigurationContext.cs
- Rotation3DAnimationBase.cs
- SubMenuStyleCollection.cs
- DataBoundLiteralControl.cs
- EventListenerClientSide.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DeferredBinaryDeserializerExtension.cs
- PresentationTraceSources.cs
- PostBackOptions.cs
- ReadOnlyPropertyMetadata.cs
- StackOverflowException.cs
- DesignerSerializationOptionsAttribute.cs
- CompleteWizardStep.cs
- Membership.cs
- Assembly.cs
- LabelDesigner.cs
- SettingsPropertyCollection.cs
- AsymmetricKeyExchangeFormatter.cs
- InternalDispatchObject.cs
- XmlSchemaSimpleTypeUnion.cs
- HtmlTableRow.cs
- HtmlInputButton.cs
- EdmType.cs
- RootBuilder.cs
- SafeFindHandle.cs
- SqlMethodAttribute.cs
- Model3DGroup.cs
- StateFinalizationActivity.cs