Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Markup / XmlLangPropertyAttribute.cs / 1 / XmlLangPropertyAttribute.cs
//---------------------------------------------------------------------------- // // File: XmlLangPropertyAttribute.cs // // Description: // This attribute is placed on a class to identify it as the place to set // the value of the xml:lang attribute from the XML markup file. // // Example: // [XmlLangProperty("Language")] // public class ExampleFrameworkElement // // Means that when the parser sees: // //// // The parser will set the "Language" property with the value "en-US". // // // Copyright (C) by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; namespace System.Windows.Markup { /// /// An attribute that specifies which property the xml:lang value should /// be directed to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class XmlLangPropertyAttribute : Attribute { ////// Creates a new XmlLangPropertyAttribute with the given string /// as the property name. /// public XmlLangPropertyAttribute(string name) { _name = name; } ////// The name of the property that is designated to accept the xml:lang value /// public string Name { get { return _name; } } // The name of the property that is designated to accept the xml:lang value private string _name = null; } } // 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
- TraceSwitch.cs
- ResourceExpressionEditor.cs
- ImageInfo.cs
- DataGridAutoFormat.cs
- DecimalConverter.cs
- XmlDataSource.cs
- LinkButton.cs
- SqlUtils.cs
- SafeArrayRankMismatchException.cs
- TerminatorSinks.cs
- PartitionedStream.cs
- RadioButtonList.cs
- XmlDocument.cs
- NumberFormatter.cs
- XmlILStorageConverter.cs
- ButtonField.cs
- FileReader.cs
- BuilderElements.cs
- securitymgrsite.cs
- XMLDiffLoader.cs
- ControlBuilder.cs
- HttpApplication.cs
- AutoResetEvent.cs
- Popup.cs
- AnimationLayer.cs
- IntranetCredentialPolicy.cs
- DataGridViewCellStyle.cs
- ContextQuery.cs
- XmlSchemaException.cs
- TrackingStringDictionary.cs
- GradientStop.cs
- XmlDeclaration.cs
- AssertSection.cs
- ToolStripItem.cs
- XmlValidatingReaderImpl.cs
- ArraySortHelper.cs
- AdapterUtil.cs
- PageCodeDomTreeGenerator.cs
- DataGridRowClipboardEventArgs.cs
- TextElementCollection.cs
- AuthenticatedStream.cs
- ListControl.cs
- XmlReflectionMember.cs
- ProtocolsConfigurationHandler.cs
- invalidudtexception.cs
- WindowsScroll.cs
- StylusPointPropertyInfoDefaults.cs
- CuspData.cs
- WhitespaceRuleLookup.cs
- StubHelpers.cs
- AdornerLayer.cs
- XmlElementAttribute.cs
- XhtmlBasicTextBoxAdapter.cs
- DbConnectionPoolIdentity.cs
- WebBrowserNavigatingEventHandler.cs
- AxisAngleRotation3D.cs
- Int64.cs
- PackageRelationshipCollection.cs
- CollectionChangeEventArgs.cs
- CombinedGeometry.cs
- ChildrenQuery.cs
- XmlSortKey.cs
- Part.cs
- CommonDialog.cs
- XmlnsDefinitionAttribute.cs
- ProviderConnectionPoint.cs
- ActivityBindForm.cs
- unsafeIndexingFilterStream.cs
- GetLastErrorDetailsRequest.cs
- AuthenticationModuleElementCollection.cs
- CodeCatchClauseCollection.cs
- AdapterDictionary.cs
- WindowsEditBox.cs
- VerticalAlignConverter.cs
- Model3DCollection.cs
- BoundColumn.cs
- DeclaredTypeValidatorAttribute.cs
- CultureTable.cs
- WindowsTab.cs
- UserPreferenceChangingEventArgs.cs
- SignatureDescription.cs
- _PooledStream.cs
- Pair.cs
- PointF.cs
- SoapFormatExtensions.cs
- PageHandlerFactory.cs
- ProfileModule.cs
- DataGridCellInfo.cs
- CodeDirectionExpression.cs
- Bidi.cs
- ping.cs
- ExecutionEngineException.cs
- ScriptRegistrationManager.cs
- OleDbSchemaGuid.cs
- ActivityExecutorSurrogate.cs
- HtmlControlAdapter.cs
- GenericWebPart.cs
- Evidence.cs
- FreezableCollection.cs
- TakeOrSkipWhileQueryOperator.cs