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
- MemberRelationshipService.cs
- DefinitionProperties.cs
- XsdCachingReader.cs
- ErrorStyle.cs
- ProtocolsConfigurationHandler.cs
- EndPoint.cs
- DuplexClientBase.cs
- CharAnimationUsingKeyFrames.cs
- HtmlShim.cs
- Command.cs
- TableLayoutPanelDesigner.cs
- XDeferredAxisSource.cs
- ValidationResult.cs
- XamlToRtfParser.cs
- GrammarBuilderPhrase.cs
- HeaderedItemsControl.cs
- XmlILStorageConverter.cs
- RequestCache.cs
- UnmanagedMemoryAccessor.cs
- DeploymentSection.cs
- CallContext.cs
- EventDescriptor.cs
- SplineQuaternionKeyFrame.cs
- ExpressionNode.cs
- FontStretchConverter.cs
- IISUnsafeMethods.cs
- DateTimeValueSerializer.cs
- SqlErrorCollection.cs
- AudioException.cs
- RowVisual.cs
- StylusPointPropertyId.cs
- DataGridColumn.cs
- CodeFieldReferenceExpression.cs
- PropertyPanel.cs
- RelationshipConverter.cs
- PlanCompilerUtil.cs
- RecipientInfo.cs
- SqlIdentifier.cs
- RewritingProcessor.cs
- MachineKeySection.cs
- EdmFunction.cs
- CustomTrackingQuery.cs
- MenuItemStyleCollection.cs
- StateMachine.cs
- SHA256Managed.cs
- DbFunctionCommandTree.cs
- CryptographicAttribute.cs
- ErrorStyle.cs
- WorkflowMarkupSerializationException.cs
- PrivilegeNotHeldException.cs
- ObjectListCommandEventArgs.cs
- TagMapCollection.cs
- ExpressionBuilder.cs
- RegexCharClass.cs
- DataServiceStreamResponse.cs
- ApplicationManager.cs
- DataBoundControl.cs
- DrawingContextWalker.cs
- AlphaSortedEnumConverter.cs
- HttpRuntime.cs
- CodeObject.cs
- UnSafeCharBuffer.cs
- EntitySetBaseCollection.cs
- ConcurrentDictionary.cs
- ElasticEase.cs
- CssStyleCollection.cs
- AnimationException.cs
- MenuRenderer.cs
- ReadOnlyNameValueCollection.cs
- ApplicationCommands.cs
- ServiceDescription.cs
- ResourceManagerWrapper.cs
- PrivilegedConfigurationManager.cs
- EventHandlingScope.cs
- SqlRetyper.cs
- PrincipalPermission.cs
- BuildManagerHost.cs
- TextChangedEventArgs.cs
- System.Data.OracleClient_BID.cs
- ExpressionEditorAttribute.cs
- InvocationExpression.cs
- ParenthesizePropertyNameAttribute.cs
- Screen.cs
- PageClientProxyGenerator.cs
- SearchForVirtualItemEventArgs.cs
- FlowDocumentPage.cs
- ClockGroup.cs
- HandleCollector.cs
- MessageQueueAccessControlEntry.cs
- SystemDropShadowChrome.cs
- NullableFloatAverageAggregationOperator.cs
- ListViewTableRow.cs
- EventLogTraceListener.cs
- WsdlServiceChannelBuilder.cs
- Variant.cs
- SHA512.cs
- KeyNotFoundException.cs
- StrongNamePublicKeyBlob.cs
- CellNormalizer.cs
- CodeVariableDeclarationStatement.cs