Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlSchemaSimpleContent.cs
- SubstitutionList.cs
- SQLDateTimeStorage.cs
- WebRequest.cs
- BinaryFormatter.cs
- PassportPrincipal.cs
- EventData.cs
- TrackingProfile.cs
- BmpBitmapEncoder.cs
- TypeTypeConverter.cs
- _SSPISessionCache.cs
- OrderByExpression.cs
- HtmlTitle.cs
- keycontainerpermission.cs
- Button.cs
- XPathArrayIterator.cs
- UriScheme.cs
- StringToken.cs
- WasEndpointConfigContainer.cs
- TypeHelper.cs
- TileModeValidation.cs
- DefaultTextStore.cs
- BitmapPalettes.cs
- FormatConvertedBitmap.cs
- UserUseLicenseDictionaryLoader.cs
- TableChangeProcessor.cs
- EpmCustomContentWriterNodeData.cs
- MsmqDecodeHelper.cs
- ToolStrip.cs
- LocationUpdates.cs
- SqlBooleanMismatchVisitor.cs
- OdbcConnectionString.cs
- SystemUdpStatistics.cs
- SqlMetaData.cs
- TextRangeBase.cs
- InvalidPrinterException.cs
- ScriptReference.cs
- MsdtcWrapper.cs
- AutomationElementIdentifiers.cs
- StateValidator.cs
- NotifyCollectionChangedEventArgs.cs
- MessageBox.cs
- ConfigurationSchemaErrors.cs
- XmlDesigner.cs
- FlowLayoutSettings.cs
- ComponentResourceManager.cs
- CodeNamespace.cs
- SafeCertificateStore.cs
- ImageCodecInfoPrivate.cs
- InvariantComparer.cs
- ObjectDataSourceView.cs
- JavaScriptObjectDeserializer.cs
- UserPersonalizationStateInfo.cs
- EntityTypeEmitter.cs
- NotImplementedException.cs
- _CommandStream.cs
- NestedContainer.cs
- DataObject.cs
- WebBrowserUriTypeConverter.cs
- AssemblyAttributesGoHere.cs
- dbdatarecord.cs
- elementinformation.cs
- XmlDataCollection.cs
- DataRowView.cs
- ComponentChangedEvent.cs
- DataError.cs
- OleTxTransactionInfo.cs
- Ppl.cs
- RoleServiceManager.cs
- ConstraintCollection.cs
- DataGridTable.cs
- DSACryptoServiceProvider.cs
- WindowsSysHeader.cs
- CommentAction.cs
- AnonymousIdentificationSection.cs
- ProcessHostFactoryHelper.cs
- TypeTypeConverter.cs
- glyphs.cs
- IncrementalReadDecoders.cs
- SuppressMergeCheckAttribute.cs
- RedirectionProxy.cs
- Int64.cs
- NumericExpr.cs
- MessageBuffer.cs
- SmtpFailedRecipientException.cs
- GridViewColumnCollectionChangedEventArgs.cs
- GridViewRowCollection.cs
- PolyBezierSegmentFigureLogic.cs
- DocobjHost.cs
- XPathNodePointer.cs
- ConsumerConnectionPointCollection.cs
- SqlUtil.cs
- TabletDeviceInfo.cs
- DbTransaction.cs
- Context.cs
- ApplicationSecurityManager.cs
- EventLogTraceListener.cs
- TableRowCollection.cs
- FileUtil.cs
- RsaSecurityToken.cs