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 / 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. //---------------------------------------------------------------------------- // // 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
- FrameworkElementFactory.cs
- COM2ExtendedBrowsingHandler.cs
- DataGridViewCellValueEventArgs.cs
- OdbcFactory.cs
- ConvertersCollection.cs
- _ScatterGatherBuffers.cs
- OrderedDictionary.cs
- DesignerSerializationOptionsAttribute.cs
- XmlSignatureProperties.cs
- _TransmitFileOverlappedAsyncResult.cs
- CodeVariableReferenceExpression.cs
- StaticFileHandler.cs
- GroupDescription.cs
- PageThemeParser.cs
- DataGridLinkButton.cs
- GlobalEventManager.cs
- DataGridViewCellParsingEventArgs.cs
- DataGridToolTip.cs
- Subtract.cs
- MultiByteCodec.cs
- MessagePartDescriptionCollection.cs
- Token.cs
- QueryRewriter.cs
- AppearanceEditorPart.cs
- DiscoveryDocumentReference.cs
- ClientFormsAuthenticationMembershipProvider.cs
- HuffModule.cs
- CssClassPropertyAttribute.cs
- RepeaterCommandEventArgs.cs
- DataContractSet.cs
- SemanticResultValue.cs
- MonitoringDescriptionAttribute.cs
- SQLDateTimeStorage.cs
- ApplicationCommands.cs
- TextTreeRootNode.cs
- PersonalizationStateInfoCollection.cs
- ContentTextAutomationPeer.cs
- UInt32Storage.cs
- TypeElementCollection.cs
- SoapEnumAttribute.cs
- XPathCompileException.cs
- ResourceManager.cs
- FlowNode.cs
- AlphabeticalEnumConverter.cs
- HttpRequestCacheValidator.cs
- EntityClientCacheKey.cs
- Triplet.cs
- GridViewDeleteEventArgs.cs
- KerberosSecurityTokenProvider.cs
- ScrollChangedEventArgs.cs
- PointCollection.cs
- _PooledStream.cs
- DotExpr.cs
- TaskHelper.cs
- ChangeNode.cs
- PriorityBindingExpression.cs
- ProxyAttribute.cs
- NavigationPropertyEmitter.cs
- XMLDiffLoader.cs
- AdRotator.cs
- HtmlWindow.cs
- AdapterDictionary.cs
- DataGridViewImageCell.cs
- FixUp.cs
- Exceptions.cs
- ResourceDescriptionAttribute.cs
- StartFileNameEditor.cs
- FileUpload.cs
- BooleanSwitch.cs
- Repeater.cs
- SystemDropShadowChrome.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CompressedStack.cs
- ToolboxComponentsCreatingEventArgs.cs
- ConnectionStringSettingsCollection.cs
- QueryGenerator.cs
- DelegateArgumentValue.cs
- XmlDocumentFragment.cs
- ErrorReporting.cs
- ContentDisposition.cs
- DocumentApplicationDocumentViewer.cs
- ByteAnimation.cs
- SqlGenericUtil.cs
- NameTable.cs
- Attributes.cs
- DateTimeOffsetStorage.cs
- ProfileParameter.cs
- SaveFileDialog.cs
- TdsParserHelperClasses.cs
- NavigationProperty.cs
- ParameterSubsegment.cs
- RegistryKey.cs
- DocumentPageHost.cs
- InstanceData.cs
- Compilation.cs
- ParserOptions.cs
- dataSvcMapFileLoader.cs
- SourceChangedEventArgs.cs
- SimpleHandlerFactory.cs
- UnhandledExceptionEventArgs.cs